mirror of https://github.com/milvus-io/milvus.git
Use stash instead of clone code multi times (#15618)
Signed-off-by: Jenny Li <jing.li@zilliz.com>pull/15626/head
parent
0afd63378b
commit
03bb9e7251
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue