未验证 提交 03bb9e72 编写于 作者: J Jenny Li 提交者: GitHub

Use stash instead of clone code multi times (#15618)

Signed-off-by: NJenny Li <jing.li@zilliz.com>
上级 0afd6337
......@@ -91,6 +91,7 @@ pipeline {
stage('Install') {
steps {
container('main') {
stash includes: 'tests/**', name: 'testCode', useDefaultExcludes: false
dir ('tests/scripts') {
script {
sh 'printenv'
......@@ -138,9 +139,13 @@ pipeline {
}
}
}
}
}
stage('E2E Test'){
options {
skipDefaultCheckout()
}
agent {
kubernetes {
label 'milvus-e2e-test-pr'
......@@ -152,6 +157,10 @@ pipeline {
}
steps {
container('pytest') {
unstash('testCode')
script {
sh 'ls -lah'
}
dir ('tests/scripts') {
script {
def release_name=sh(returnStdout: true, script: './get_release_name.sh')
......
......@@ -12,6 +12,7 @@ pipeline {
buildDiscarder logRotator(artifactDaysToKeepStr: '30')
parallelsAlwaysFailFast()
preserveStashes(buildCount: 5)
}
agent {
kubernetes {
......@@ -87,7 +88,9 @@ pipeline {
stages {
stage('Install') {
steps {
container('main') {
stash includes: 'tests/**', name: 'testCode', useDefaultExcludes: false
dir ('tests/scripts') {
script {
sh 'printenv'
......@@ -137,6 +140,10 @@ pipeline {
}
}
stage('E2E Test'){
options {
skipDefaultCheckout()
}
agent {
kubernetes {
label 'milvus-qa-e2e-test-pr'
......@@ -148,6 +155,10 @@ pipeline {
}
steps {
container('pytest') {
unstash('testCode')
script {
sh 'ls -lah'
}
dir ('tests/scripts') {
script {
def release_name=sh(returnStdout: true, script: './get_release_name.sh')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册