Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
11d1320b
M
milvus
项目概览
milvus
/
milvus
12 个月 前同步成功
通知
261
Star
22476
Fork
2472
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
milvus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
11d1320b
编写于
11月 26, 2019
作者:
Q
quicksilver
提交者:
GitHub
11月 26, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #551 from ZhifengZhang-CN/0.6.0
add BUILD_ENV_IMAGE_ID environment values
上级
0395146f
ad1da64d
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
12 addition
and
8 deletion
+12
-8
ci/jenkins/pod/milvus-cpu-version-build-env-pod.yaml
ci/jenkins/pod/milvus-cpu-version-build-env-pod.yaml
+2
-0
ci/jenkins/pod/milvus-gpu-version-build-env-pod.yaml
ci/jenkins/pod/milvus-gpu-version-build-env-pod.yaml
+2
-0
ci/scripts/check_ccache.sh
ci/scripts/check_ccache.sh
+6
-6
ci/scripts/update_ccache.sh
ci/scripts/update_ccache.sh
+2
-2
未找到文件。
ci/jenkins/pod/milvus-cpu-version-build-env-pod.yaml
浏览文件 @
11d1320b
...
...
@@ -14,6 +14,8 @@ spec:
valueFrom
:
fieldRef
:
fieldPath
:
status.podIP
-
name
:
BUILD_ENV_IMAGE_ID
value
:
"
23476391bec80c64f10d44a6370c73c71f011a6b95114b10ff82a60e771e11c7"
command
:
-
cat
tty
:
true
...
...
ci/jenkins/pod/milvus-gpu-version-build-env-pod.yaml
浏览文件 @
11d1320b
...
...
@@ -14,6 +14,8 @@ spec:
valueFrom
:
fieldRef
:
fieldPath
:
status.podIP
-
name
:
BUILD_ENV_IMAGE_ID
value
:
"
da9023b0f858f072672f86483a869aa87e90a5140864f89e5a012ec766d96dea"
command
:
-
cat
tty
:
true
...
...
ci/scripts/check_ccache.sh
浏览文件 @
11d1320b
...
...
@@ -2,7 +2,7 @@
OS_NAME
=
"linux"
CODE_NAME
=
$(
lsb_release
-sc
)
OS_MD5
=
$(
lsb_release
-s
|
md5sum
|
cut
-d
" "
-f
1
)
BUILD_ENV_DOCKER_IMAGE_ID
=
"
${
BUILD_ENV_IMAGE_ID
}
"
BRANCH_NAMES
=
$(
git log
--decorate
|
head
-n
1 |
sed
's/.*(\(.*\))/\1/'
|
sed
's=[a-zA-Z]*\/==g'
|
awk
-F
", "
'{$1=""; print $0}'
)
ARTIFACTORY_URL
=
""
CCACHE_DIRECTORY
=
"
${
HOME
}
/.ccache"
...
...
@@ -43,13 +43,13 @@ fi
for
BRANCH_NAME
in
${
BRANCH_NAMES
}
do
echo
"fetching
${
BRANCH_NAME
}
/ccache-
${
OS_NAME
}
-
${
CODE_NAME
}
-
${
OS_MD5
}
.tar.gz"
wget
-q
--method
HEAD
"
${
ARTIFACTORY_URL
}
/
${
BRANCH_NAME
}
/ccache-
${
OS_NAME
}
-
${
CODE_NAME
}
-
${
OS_MD5
}
.tar.gz"
echo
"fetching
${
BRANCH_NAME
}
/ccache-
${
OS_NAME
}
-
${
CODE_NAME
}
-
${
BUILD_ENV_DOCKER_IMAGE_ID
}
.tar.gz"
wget
-q
--method
HEAD
"
${
ARTIFACTORY_URL
}
/
${
BRANCH_NAME
}
/ccache-
${
OS_NAME
}
-
${
CODE_NAME
}
-
${
BUILD_ENV_DOCKER_IMAGE_ID
}
.tar.gz"
if
[[
$?
==
0
]]
;
then
wget
"
${
ARTIFACTORY_URL
}
/
${
BRANCH_NAME
}
/ccache-
${
OS_NAME
}
-
${
CODE_NAME
}
-
${
OS_MD5
}
.tar.gz"
&&
\
wget
"
${
ARTIFACTORY_URL
}
/
${
BRANCH_NAME
}
/ccache-
${
OS_NAME
}
-
${
CODE_NAME
}
-
${
BUILD_ENV_DOCKER_IMAGE_ID
}
.tar.gz"
&&
\
mkdir
-p
${
CCACHE_DIRECTORY
}
&&
\
tar
zxf ccache-
${
OS_NAME
}
-
${
CODE_NAME
}
-
${
OS_MD5
}
.tar.gz
-C
${
CCACHE_DIRECTORY
}
&&
\
rm
ccache-
${
OS_NAME
}
-
${
CODE_NAME
}
-
${
OS_MD5
}
.tar.gz
tar
zxf ccache-
${
OS_NAME
}
-
${
CODE_NAME
}
-
${
BUILD_ENV_DOCKER_IMAGE_ID
}
.tar.gz
-C
${
CCACHE_DIRECTORY
}
&&
\
rm
ccache-
${
OS_NAME
}
-
${
CODE_NAME
}
-
${
BUILD_ENV_DOCKER_IMAGE_ID
}
.tar.gz
if
[[
$?
==
0
]]
;
then
echo
"found cache"
exit
0
...
...
ci/scripts/update_ccache.sh
浏览文件 @
11d1320b
...
...
@@ -2,7 +2,7 @@
OS_NAME
=
"linux"
CODE_NAME
=
$(
lsb_release
-sc
)
OS_MD5
=
$(
lsb_release
-s
|
md5sum
|
cut
-d
" "
-f
1
)
BUILD_ENV_DOCKER_IMAGE_ID
=
"
${
BUILD_ENV_IMAGE_ID
}
"
BRANCH_NAME
=
$(
git log
--decorate
|
head
-n
1 |
sed
's/.*(\(.*\))/\1/'
|
sed
's/.*, //'
|
sed
's=[a-zA-Z]*\/==g'
)
ARTIFACTORY_URL
=
""
ARTIFACTORY_USER
=
""
...
...
@@ -51,7 +51,7 @@ if [[ -z "${ARTIFACTORY_URL}" || "${ARTIFACTORY_URL}" == "" ]];then
exit
1
fi
PACKAGE_FILE
=
"ccache-
${
OS_NAME
}
-
${
CODE_NAME
}
-
${
OS_MD5
}
.tar.gz"
PACKAGE_FILE
=
"ccache-
${
OS_NAME
}
-
${
CODE_NAME
}
-
${
BUILD_ENV_DOCKER_IMAGE_ID
}
.tar.gz"
REMOTE_PACKAGE_PATH
=
"
${
ARTIFACTORY_URL
}
/
${
BRANCH_NAME
}
"
echo
"Updating ccache package file:
${
PACKAGE_FILE
}
"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录