Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
f4e39a57
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f4e39a57
编写于
11月 21, 2017
作者:
C
Christof Marti
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Clean up (#38324)
上级
0688b054
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
2 addition
and
15 deletion
+2
-15
build/tfs/linux/release.sh
build/tfs/linux/release.sh
+2
-15
未找到文件。
build/tfs/linux/release.sh
浏览文件 @
f4e39a57
...
@@ -60,33 +60,20 @@ elif [ "$IS_FROZEN" = "true" ]; then
...
@@ -60,33 +60,20 @@ elif [ "$IS_FROZEN" = "true" ]; then
else
else
if
[
"
$BUILD_SOURCEBRANCH
"
=
"master"
]
||
[
"
$BUILD_SOURCEBRANCH
"
=
"refs/heads/master"
]
;
then
if
[
"
$BUILD_SOURCEBRANCH
"
=
"master"
]
||
[
"
$BUILD_SOURCEBRANCH
"
=
"refs/heads/master"
]
;
then
if
[[
$BUILD_QUEUEDBY
=
*
"Project Collection Service Accounts"
*
||
$BUILD_QUEUEDBY
=
*
"Microsoft.VisualStudio.Services.TFS"
*
]]
;
then
if
[[
$BUILD_QUEUEDBY
=
*
"Project Collection Service Accounts"
*
||
$BUILD_QUEUEDBY
=
*
"Microsoft.VisualStudio.Services.TFS"
*
]]
;
then
# Get necessary information
pushd
$REPO
&&
COMMIT_HASH
=
$(
git rev-parse HEAD
)
&&
popd
PACKAGE_NAME
=
"
$(
ls
$REPO
/.build/linux/deb/
$DEB_ARCH
/deb/ |
sed
-e
's/_.*//g'
)
"
DEB_URL
=
"https://az764295.vo.msecnd.net/
$VSCODE_QUALITY
/
$COMMIT_HASH
/
$DEB_FILENAME
"
RPM_URL
=
"https://az764295.vo.msecnd.net/
$VSCODE_QUALITY
/
$COMMIT_HASH
/
$RPM_FILENAME
"
PACKAGE_VERSION
=
"
$(
ls
$REPO
/.build/linux/deb/
$DEB_ARCH
/deb/ |
sed
-e
's/code-[a-z]*_//g'
-e
's/\_.*$//g'
)
"
# Write config files needed by API, use eval to force environment variable expansion
# Write config files needed by API, use eval to force environment variable expansion
DIRNAME
=
$(
dirname
$(
readlink
-f
$0
))
DIRNAME
=
$(
dirname
$(
readlink
-f
$0
))
pushd
$DIRNAME
pushd
$DIRNAME
# Submit to apt repo
# Submit to apt repo
if
[
"
$DEB_ARCH
"
=
"amd64"
]
;
then
if
[
"
$DEB_ARCH
"
=
"amd64"
]
;
then
eval echo
'{ \"server\": \"azure-apt-cat.cloudapp.net\", \"protocol\": \"https\", \"port\": \"443\", \"repositoryId\": \"58a4adf642421134a1a48d1a\", \"username\": \"$LINUX_REPO_USERNAME\", \"password\": \"$LINUX_REPO_PASSWORD\" }'
>
apt-config.json
eval echo
'{ \"server\": \"azure-apt-cat.cloudapp.net\", \"protocol\": \"https\", \"port\": \"443\", \"repositoryId\": \"58a4adf642421134a1a48d1a\", \"username\": \"$LINUX_REPO_USERNAME\", \"password\": \"$LINUX_REPO_PASSWORD\" }'
>
apt-config.json
# eval echo '{ \"name\": \"$PACKAGE_NAME\", \"version\": \"$PACKAGE_VERSION\", \"repositoryId\": \"58a4adf642421134a1a48d1a\", \"sourceUrl\": \"$DEB_URL\" }' > apt-addpkg.json
# echo "Submitting apt-addpkg.json:"
# cat apt-addpkg.json
# step "Publish to repositories" \
# ./repoapi_client.sh -config apt-config.json -addpkg apt-addpkg.json
step
"Publish to repositories"
\
step
"Publish to repositories"
\
./repoapi_client.sh
-config
apt-config.json
-addfile
$DEB_PATH
./repoapi_client.sh
-config
apt-config.json
-addfile
$DEB_PATH
fi
fi
# Submit to yum repo (disabled as it's manual until signing is automated)
# Submit to yum repo (disabled as it's manual until signing is automated)
# eval echo '{ \"server\": \"azure-apt-cat.cloudapp.net\", \"protocol\": \"https\", \"port\": \"443\", \"repositoryId\": \"58a4ae3542421134a1a48d1b\", \"username\": \"$LINUX_REPO_USERNAME\", \"password\": \"$LINUX_REPO_PASSWORD\" }' > yum-config.json
# eval echo '{ \"server\": \"azure-apt-cat.cloudapp.net\", \"protocol\": \"https\", \"port\": \"443\", \"repositoryId\": \"58a4ae3542421134a1a48d1b\", \"username\": \"$LINUX_REPO_USERNAME\", \"password\": \"$LINUX_REPO_PASSWORD\" }' > yum-config.json
# eval echo '{ \"name\": \"$PACKAGE_NAME\", \"version\": \"$PACKAGE_VERSION\", \"repositoryId\": \"58a4ae3542421134a1a48d1b\", \"sourceUrl\": \"$RPM_URL\" }' > yum-addpkg.json
# echo "Submitting yum-addpkg.json:"
# ./repoapi_client.sh -config yum-config.json -addfile $RPM_PATH
# cat yum-addpkg.json
# ./repoapi_client.sh -config yum-config.json -addpkg yum-addpkg.json
popd
popd
echo
"To check repo publish status run ./repoapi_client.sh -config config.json -check <id>"
echo
"To check repo publish status run ./repoapi_client.sh -config config.json -check <id>"
fi
fi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录