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

Signed-off-by: Jenny Li <jing.li@zilliz.com>
pull/15626/head
Jenny Li 2022-02-18 11:35:49 +08:00 committed by GitHub
parent 0afd63378b
commit 03bb9e7251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

View File

@ -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')

View File

@ -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')