Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
milvus
提交
e50f3ab4
milvus
项目概览
BaiXuePrincess
/
milvus
与 Fork 源项目一致
Fork自
milvus / milvus
通知
7
Star
4
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
milvus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
e50f3ab4
编写于
11月 22, 2019
作者:
J
Jin Hai
提交者:
GitHub
11月 22, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #464 from ZhifengZhang-CN/0.6.0
format Jenkinsfile
上级
fbcbaff4
ae59ad19
变更
8
显示空白变更内容
内联
并排
Showing
8 changed file
with
67 addition
and
61 deletion
+67
-61
ci/jenkins/Jenkinsfile
ci/jenkins/Jenkinsfile
+20
-12
ci/jenkins/pod/milvus-cpu-version-build-env-pod.yaml
ci/jenkins/pod/milvus-cpu-version-build-env-pod.yaml
+1
-1
ci/jenkins/pod/milvus-gpu-version-build-env-pod.yaml
ci/jenkins/pod/milvus-gpu-version-build-env-pod.yaml
+1
-1
ci/jenkins/step/cleanupSingleDev.groovy
ci/jenkins/step/cleanupSingleDev.groovy
+4
-4
ci/jenkins/step/deploySingle2Dev.groovy
ci/jenkins/step/deploySingle2Dev.groovy
+1
-1
ci/jenkins/step/publishImages.groovy
ci/jenkins/step/publishImages.groovy
+34
-36
ci/jenkins/step/singleDevNightlyTest.groovy
ci/jenkins/step/singleDevNightlyTest.groovy
+3
-3
ci/jenkins/step/singleDevTest.groovy
ci/jenkins/step/singleDevTest.groovy
+3
-3
未找到文件。
ci/jenkins/Jenkinsfile
浏览文件 @
e50f3ab4
...
...
@@ -53,7 +53,7 @@ pipeline {
stage
(
"Run Build"
)
{
agent
{
kubernetes
{
label
"${BINRARY_VERSION}-build"
label
"${
env.
BINRARY_VERSION}-build"
defaultContainer
'jnlp'
yamlFile
'ci/jenkins/pod/milvus-gpu-version-build-env-pod.yaml'
}
...
...
@@ -62,7 +62,7 @@ pipeline {
stages
{
stage
(
'Build'
)
{
steps
{
container
(
'milvus-build-env'
)
{
container
(
"milvus-${env.BINRARY_VERSION}-build-env"
)
{
script
{
load
"${env.WORKSPACE}/ci/jenkins/step/build.groovy"
}
...
...
@@ -71,7 +71,7 @@ pipeline {
}
stage
(
'Code Coverage'
)
{
steps
{
container
(
'milvus-build-env'
)
{
container
(
"milvus-${env.BINRARY_VERSION}-build-env"
)
{
script
{
load
"${env.WORKSPACE}/ci/jenkins/step/coverage.groovy"
}
...
...
@@ -80,7 +80,7 @@ pipeline {
}
stage
(
'Upload Package'
)
{
steps
{
container
(
'milvus-build-env'
)
{
container
(
"milvus-${env.BINRARY_VERSION}-build-env"
)
{
script
{
load
"${env.WORKSPACE}/ci/jenkins/step/package.groovy"
}
...
...
@@ -93,7 +93,7 @@ pipeline {
stage
(
"Publish docker images"
)
{
agent
{
kubernetes
{
label
"${BINRARY_VERSION}-publish"
label
"${
env.
BINRARY_VERSION}-publish"
defaultContainer
'jnlp'
yamlFile
'ci/jenkins/pod/docker-pod.yaml'
}
...
...
@@ -113,9 +113,13 @@ pipeline {
}
stage
(
"Deploy to Development"
)
{
environment
{
HELM_RELEASE_NAME
=
"${env.PIPELINE_NAME}-${env.SEMVER}-${env.BUILD_NUMBER}-single-${env.BINRARY_VERSION}"
.
toLowerCase
()
}
agent
{
kubernetes
{
label
"${BINRARY_VERSION}-dev-test"
label
"${
env.
BINRARY_VERSION}-dev-test"
defaultContainer
'jnlp'
yamlFile
'ci/jenkins/pod/testEnvironment.yaml'
}
...
...
@@ -183,7 +187,7 @@ pipeline {
stage
(
"Run Build"
)
{
agent
{
kubernetes
{
label
"${BINRARY_VERSION}-build"
label
"${
env.
BINRARY_VERSION}-build"
defaultContainer
'jnlp'
yamlFile
'ci/jenkins/pod/milvus-cpu-version-build-env-pod.yaml'
}
...
...
@@ -192,7 +196,7 @@ pipeline {
stages
{
stage
(
'Build'
)
{
steps
{
container
(
'milvus-build-env'
)
{
container
(
"milvus-${env.BINRARY_VERSION}-build-env"
)
{
script
{
load
"${env.WORKSPACE}/ci/jenkins/step/build.groovy"
}
...
...
@@ -201,7 +205,7 @@ pipeline {
}
stage
(
'Code Coverage'
)
{
steps
{
container
(
'milvus-build-env'
)
{
container
(
"milvus-${env.BINRARY_VERSION}-build-env"
)
{
script
{
load
"${env.WORKSPACE}/ci/jenkins/step/coverage.groovy"
}
...
...
@@ -210,7 +214,7 @@ pipeline {
}
stage
(
'Upload Package'
)
{
steps
{
container
(
'milvus-build-env'
)
{
container
(
"milvus-${env.BINRARY_VERSION}-build-env"
)
{
script
{
load
"${env.WORKSPACE}/ci/jenkins/step/package.groovy"
}
...
...
@@ -223,7 +227,7 @@ pipeline {
stage
(
"Publish docker images"
)
{
agent
{
kubernetes
{
label
"${BINRARY_VERSION}-publish"
label
"${
env.
BINRARY_VERSION}-publish"
defaultContainer
'jnlp'
yamlFile
'ci/jenkins/pod/docker-pod.yaml'
}
...
...
@@ -243,9 +247,13 @@ pipeline {
}
stage
(
"Deploy to Development"
)
{
environment
{
HELM_RELEASE_NAME
=
"${env.PIPELINE_NAME}-${env.SEMVER}-${env.BUILD_NUMBER}-single-${env.BINRARY_VERSION}"
.
toLowerCase
()
}
agent
{
kubernetes
{
label
"${BINRARY_VERSION}-dev-test"
label
"${
env.
BINRARY_VERSION}-dev-test"
defaultContainer
'jnlp'
yamlFile
'ci/jenkins/pod/testEnvironment.yaml'
}
...
...
ci/jenkins/pod/milvus-cpu-version-build-env-pod.yaml
浏览文件 @
e50f3ab4
...
...
@@ -7,7 +7,7 @@ metadata:
componet
:
cpu-build-env
spec
:
containers
:
-
name
:
milvus-build-env
-
name
:
milvus-
cpu-
build-env
image
:
registry.zilliz.com/milvus/milvus-cpu-build-env:v0.6.0-ubuntu18.04
env
:
-
name
:
POD_IP
...
...
ci/jenkins/pod/milvus-gpu-version-build-env-pod.yaml
浏览文件 @
e50f3ab4
...
...
@@ -7,7 +7,7 @@ metadata:
componet
:
gpu-build-env
spec
:
containers
:
-
name
:
milvus-build-env
-
name
:
milvus-
gpu-
build-env
image
:
registry.zilliz.com/milvus/milvus-gpu-build-env:v0.6.0-ubuntu18.04
env
:
-
name
:
POD_IP
...
...
ci/jenkins/step/cleanupSingleDev.groovy
浏览文件 @
e50f3ab4
try
{
def
helmResult
=
sh
script:
"helm status ${env.
PIPELINE_NAME}-${env.BUILD_NUMBER}-single-${env.BINRARY_VERSION
}"
,
returnStatus:
true
def
helmResult
=
sh
script:
"helm status ${env.
HELM_RELEASE_NAME
}"
,
returnStatus:
true
if
(!
helmResult
)
{
sh
"helm del --purge ${env.
PIPELINE_NAME}-${env.BUILD_NUMBER}-single-${env.BINRARY_VERSION
}"
sh
"helm del --purge ${env.
HELM_RELEASE_NAME
}"
}
}
catch
(
exc
)
{
def
helmResult
=
sh
script:
"helm status ${env.
PIPELINE_NAME}-${env.BUILD_NUMBER}-single-${env.BINRARY_VERSION
}"
,
returnStatus:
true
def
helmResult
=
sh
script:
"helm status ${env.
HELM_RELEASE_NAME
}"
,
returnStatus:
true
if
(!
helmResult
)
{
sh
"helm del --purge ${env.
PIPELINE_NAME}-${env.BUILD_NUMBER}-single-${env.BINRARY_VERSION
}"
sh
"helm del --purge ${env.
HELM_RELEASE_NAME
}"
}
throw
exc
}
ci/jenkins/step/deploySingle2Dev.groovy
浏览文件 @
e50f3ab4
...
...
@@ -3,7 +3,7 @@ sh 'helm repo update'
dir
(
'milvus-helm'
)
{
checkout
([
$class
:
'GitSCM'
,
branches:
[[
name:
"0.6.0"
]],
userRemoteConfigs:
[[
url:
"https://github.com/milvus-io/milvus-helm.git"
,
name:
'origin'
,
refspec:
"+refs/heads/0.6.0:refs/remotes/origin/0.6.0"
]]])
dir
(
"milvus"
)
{
sh
"helm install --wait --timeout 300 --set engine.image.tag=${DOCKER_VERSION} --set expose.type=clusterIP --name ${env.
PIPELINE_NAME}-${env.BUILD_NUMBER}-single-${env.BINRARY_VERSION
} -f ci/db_backend/sqlite_${env.BINRARY_VERSION}_values.yaml -f ci/filebeat/values.yaml --namespace milvus ."
sh
"helm install --wait --timeout 300 --set engine.image.tag=${DOCKER_VERSION} --set expose.type=clusterIP --name ${env.
HELM_RELEASE_NAME
} -f ci/db_backend/sqlite_${env.BINRARY_VERSION}_values.yaml -f ci/filebeat/values.yaml --namespace milvus ."
}
}
ci/jenkins/step/publishImages.groovy
浏览文件 @
e50f3ab4
container
(
'publish-images'
)
{
timeout
(
time:
15
,
unit:
'MINUTES'
)
{
timeout
(
time:
15
,
unit:
'MINUTES'
)
{
dir
(
"docker/deploy/${env.BINRARY_VERSION}/${env.OS_NAME}"
)
{
def
binaryPackage
=
"${PROJECT_NAME}-${PACKAGE_VERSION}.tar.gz"
...
...
@@ -43,5 +42,4 @@ container('publish-images') {
}
}
}
}
}
ci/jenkins/step/singleDevNightlyTest.groovy
浏览文件 @
e50f3ab4
timeout
(
time:
90
,
unit:
'MINUTES'
)
{
dir
(
"tests/milvus_python_test"
)
{
sh
'python3 -m pip install -r requirements.txt'
sh
"pytest . --alluredir=\"test_out/dev/single/sqlite\" --ip ${env.
PIPELINE_NAME}-${env.BUILD_NUMBER}-single-${env.BINRARY_VERSION
}-engine.milvus.svc.cluster.local"
sh
"pytest . --alluredir=\"test_out/dev/single/sqlite\" --ip ${env.
HELM_RELEASE_NAME
}-engine.milvus.svc.cluster.local"
}
// mysql database backend test
load
"ci/jenkins/jenkinsfile/cleanupSingleDev.groovy"
...
...
@@ -13,10 +13,10 @@ timeout(time: 90, unit: 'MINUTES') {
}
dir
(
"milvus-helm"
)
{
dir
(
"milvus"
)
{
sh
"helm install --wait --timeout 300 --set engine.image.tag=${DOCKER_VERSION} --set expose.type=clusterIP --name ${env.
PIPELINE_NAME}-${env.BUILD_NUMBER}-single-${env.BINRARY_VERSION
} -f ci/db_backend/mysql_${env.BINRARY_VERSION}_values.yaml -f ci/filebeat/values.yaml --namespace milvus ."
sh
"helm install --wait --timeout 300 --set engine.image.tag=${DOCKER_VERSION} --set expose.type=clusterIP --name ${env.
HELM_RELEASE_NAME
} -f ci/db_backend/mysql_${env.BINRARY_VERSION}_values.yaml -f ci/filebeat/values.yaml --namespace milvus ."
}
}
dir
(
"tests/milvus_python_test"
)
{
sh
"pytest . --alluredir=\"test_out/dev/single/mysql\" --ip ${env.
PIPELINE_NAME}-${env.BUILD_NUMBER}-single-${env.BINRARY_VERSION
}-engine.milvus.svc.cluster.local"
sh
"pytest . --alluredir=\"test_out/dev/single/mysql\" --ip ${env.
HELM_RELEASE_NAME
}-engine.milvus.svc.cluster.local"
}
}
ci/jenkins/step/singleDevTest.groovy
浏览文件 @
e50f3ab4
timeout
(
time:
60
,
unit:
'MINUTES'
)
{
dir
(
"tests/milvus_python_test"
)
{
sh
'python3 -m pip install -r requirements.txt'
sh
"pytest . --alluredir=\"test_out/dev/single/sqlite\" --level=1 --ip ${env.
PIPELINE_NAME}-${env.BUILD_NUMBER}-single-${env.BINRARY_VERSION
}-engine.milvus.svc.cluster.local"
sh
"pytest . --alluredir=\"test_out/dev/single/sqlite\" --level=1 --ip ${env.
HELM_RELEASE_NAME
}-engine.milvus.svc.cluster.local"
}
// mysql database backend test
...
...
@@ -14,10 +14,10 @@ timeout(time: 60, unit: 'MINUTES') {
// }
// dir ("milvus-helm") {
// dir ("milvus") {
// sh "helm install --wait --timeout 300 --set engine.image.tag=${DOCKER_VERSION} --set expose.type=clusterIP --name ${env.
PIPELINE_NAME}-${env.BUILD_NUMBER}-single-${env.BINRARY_VERSION
} -f ci/db_backend/mysql_${env.BINRARY_VERSION}_values.yaml -f ci/filebeat/values.yaml --namespace milvus ."
// sh "helm install --wait --timeout 300 --set engine.image.tag=${DOCKER_VERSION} --set expose.type=clusterIP --name ${env.
HELM_RELEASE_NAME
} -f ci/db_backend/mysql_${env.BINRARY_VERSION}_values.yaml -f ci/filebeat/values.yaml --namespace milvus ."
// }
// }
// dir ("tests/milvus_python_test") {
// sh "pytest . --alluredir=\"test_out/dev/single/mysql\" --level=1 --ip ${env.
PIPELINE_NAME}-${env.BUILD_NUMBER}-single-${env.BINRARY_VERSION
}-engine.milvus.svc.cluster.local"
// sh "pytest . --alluredir=\"test_out/dev/single/mysql\" --level=1 --ip ${env.
HELM_RELEASE_NAME
}-engine.milvus.svc.cluster.local"
// }
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录