Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
milvus
提交
ae59ad19
milvus
项目概览
BaiXuePrincess
/
milvus
与 Fork 源项目一致
从无法访问的项目Fork
通知
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,发现更多精彩内容 >>
提交
ae59ad19
编写于
11月 21, 2019
作者:
Q
quicksilver
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
format Jenkinsfile
上级
3285aa98
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
19 addition
and
11 deletion
+19
-11
ci/jenkins/Jenkinsfile
ci/jenkins/Jenkinsfile
+8
-0
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/singleDevNightlyTest.groovy
ci/jenkins/step/singleDevNightlyTest.groovy
+3
-3
ci/jenkins/step/singleDevTest.groovy
ci/jenkins/step/singleDevTest.groovy
+3
-3
未找到文件。
ci/jenkins/Jenkinsfile
浏览文件 @
ae59ad19
...
@@ -113,6 +113,10 @@ pipeline {
...
@@ -113,6 +113,10 @@ pipeline {
}
}
stage
(
"Deploy to Development"
)
{
stage
(
"Deploy to Development"
)
{
environment
{
HELM_RELEASE_NAME
=
"${env.PIPELINE_NAME}-${env.SEMVER}-${env.BUILD_NUMBER}-single-${env.BINRARY_VERSION}"
.
toLowerCase
()
}
agent
{
agent
{
kubernetes
{
kubernetes
{
label
"${env.BINRARY_VERSION}-dev-test"
label
"${env.BINRARY_VERSION}-dev-test"
...
@@ -243,6 +247,10 @@ pipeline {
...
@@ -243,6 +247,10 @@ pipeline {
}
}
stage
(
"Deploy to Development"
)
{
stage
(
"Deploy to Development"
)
{
environment
{
HELM_RELEASE_NAME
=
"${env.PIPELINE_NAME}-${env.SEMVER}-${env.BUILD_NUMBER}-single-${env.BINRARY_VERSION}"
.
toLowerCase
()
}
agent
{
agent
{
kubernetes
{
kubernetes
{
label
"${env.BINRARY_VERSION}-dev-test"
label
"${env.BINRARY_VERSION}-dev-test"
...
...
ci/jenkins/step/cleanupSingleDev.groovy
浏览文件 @
ae59ad19
try
{
try
{
def
helmResult
=
sh
script:
"helm status ${env.
PIPELINE_NAME}-${env.SEMVER}-${env.BUILD_NUMBER}-single-${env.BINRARY_VERSION
}"
,
returnStatus:
true
def
helmResult
=
sh
script:
"helm status ${env.
HELM_RELEASE_NAME
}"
,
returnStatus:
true
if
(!
helmResult
)
{
if
(!
helmResult
)
{
sh
"helm del --purge ${env.
PIPELINE_NAME}-${env.SEMVER}-${env.BUILD_NUMBER}-single-${env.BINRARY_VERSION
}"
sh
"helm del --purge ${env.
HELM_RELEASE_NAME
}"
}
}
}
catch
(
exc
)
{
}
catch
(
exc
)
{
def
helmResult
=
sh
script:
"helm status ${env.
PIPELINE_NAME}-${env.SEMVER}-${env.BUILD_NUMBER}-single-${env.BINRARY_VERSION
}"
,
returnStatus:
true
def
helmResult
=
sh
script:
"helm status ${env.
HELM_RELEASE_NAME
}"
,
returnStatus:
true
if
(!
helmResult
)
{
if
(!
helmResult
)
{
sh
"helm del --purge ${env.
PIPELINE_NAME}-${env.SEMVER}-${env.BUILD_NUMBER}-single-${env.BINRARY_VERSION
}"
sh
"helm del --purge ${env.
HELM_RELEASE_NAME
}"
}
}
throw
exc
throw
exc
}
}
ci/jenkins/step/deploySingle2Dev.groovy
浏览文件 @
ae59ad19
...
@@ -3,7 +3,7 @@ sh 'helm repo update'
...
@@ -3,7 +3,7 @@ sh 'helm repo update'
dir
(
'milvus-helm'
)
{
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"
]]])
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"
)
{
dir
(
"milvus"
)
{
sh
"helm install --wait --timeout 300 --set engine.image.tag=${DOCKER_VERSION} --set expose.type=clusterIP --name ${env.
PIPELINE_NAME}-${env.SEMVER}-${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/singleDevNightlyTest.groovy
浏览文件 @
ae59ad19
timeout
(
time:
90
,
unit:
'MINUTES'
)
{
timeout
(
time:
90
,
unit:
'MINUTES'
)
{
dir
(
"tests/milvus_python_test"
)
{
dir
(
"tests/milvus_python_test"
)
{
sh
'python3 -m pip install -r requirements.txt'
sh
'python3 -m pip install -r requirements.txt'
sh
"pytest . --alluredir=\"test_out/dev/single/sqlite\" --ip ${env.
PIPELINE_NAME}-${env.SEMVER}-${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
// mysql database backend test
load
"ci/jenkins/jenkinsfile/cleanupSingleDev.groovy"
load
"ci/jenkins/jenkinsfile/cleanupSingleDev.groovy"
...
@@ -13,10 +13,10 @@ timeout(time: 90, unit: 'MINUTES') {
...
@@ -13,10 +13,10 @@ timeout(time: 90, unit: 'MINUTES') {
}
}
dir
(
"milvus-helm"
)
{
dir
(
"milvus-helm"
)
{
dir
(
"milvus"
)
{
dir
(
"milvus"
)
{
sh
"helm install --wait --timeout 300 --set engine.image.tag=${DOCKER_VERSION} --set expose.type=clusterIP --name ${env.
PIPELINE_NAME}-${env.SEMVER}-${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"
)
{
dir
(
"tests/milvus_python_test"
)
{
sh
"pytest . --alluredir=\"test_out/dev/single/mysql\" --ip ${env.
PIPELINE_NAME}-${env.SEMVER}-${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
浏览文件 @
ae59ad19
timeout
(
time:
60
,
unit:
'MINUTES'
)
{
timeout
(
time:
60
,
unit:
'MINUTES'
)
{
dir
(
"tests/milvus_python_test"
)
{
dir
(
"tests/milvus_python_test"
)
{
sh
'python3 -m pip install -r requirements.txt'
sh
'python3 -m pip install -r requirements.txt'
sh
"pytest . --alluredir=\"test_out/dev/single/sqlite\" --level=1 --ip ${env.
PIPELINE_NAME}-${env.SEMVER}-${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
// mysql database backend test
...
@@ -14,10 +14,10 @@ timeout(time: 60, unit: 'MINUTES') {
...
@@ -14,10 +14,10 @@ timeout(time: 60, unit: 'MINUTES') {
// }
// }
// dir ("milvus-helm") {
// dir ("milvus-helm") {
// dir ("milvus") {
// dir ("milvus") {
// sh "helm install --wait --timeout 300 --set engine.image.tag=${DOCKER_VERSION} --set expose.type=clusterIP --name ${env.
PIPELINE_NAME}-${env.SEMVER}-${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") {
// dir ("tests/milvus_python_test") {
// sh "pytest . --alluredir=\"test_out/dev/single/mysql\" --level=1 --ip ${env.
PIPELINE_NAME}-${env.SEMVER}-${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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录