mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 01:28:27 +08:00
Use stash instead of clone code multi times (#15618)
Signed-off-by: Jenny Li <jing.li@zilliz.com>
This commit is contained in:
parent
0afd63378b
commit
03bb9e7251
@ -91,6 +91,7 @@ pipeline {
|
|||||||
stage('Install') {
|
stage('Install') {
|
||||||
steps {
|
steps {
|
||||||
container('main') {
|
container('main') {
|
||||||
|
stash includes: 'tests/**', name: 'testCode', useDefaultExcludes: false
|
||||||
dir ('tests/scripts') {
|
dir ('tests/scripts') {
|
||||||
script {
|
script {
|
||||||
sh 'printenv'
|
sh 'printenv'
|
||||||
@ -138,9 +139,13 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('E2E Test'){
|
stage('E2E Test'){
|
||||||
|
options {
|
||||||
|
skipDefaultCheckout()
|
||||||
|
}
|
||||||
agent {
|
agent {
|
||||||
kubernetes {
|
kubernetes {
|
||||||
label 'milvus-e2e-test-pr'
|
label 'milvus-e2e-test-pr'
|
||||||
@ -152,6 +157,10 @@ pipeline {
|
|||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
container('pytest') {
|
container('pytest') {
|
||||||
|
unstash('testCode')
|
||||||
|
script {
|
||||||
|
sh 'ls -lah'
|
||||||
|
}
|
||||||
dir ('tests/scripts') {
|
dir ('tests/scripts') {
|
||||||
script {
|
script {
|
||||||
def release_name=sh(returnStdout: true, script: './get_release_name.sh')
|
def release_name=sh(returnStdout: true, script: './get_release_name.sh')
|
||||||
|
|||||||
@ -12,6 +12,7 @@ pipeline {
|
|||||||
buildDiscarder logRotator(artifactDaysToKeepStr: '30')
|
buildDiscarder logRotator(artifactDaysToKeepStr: '30')
|
||||||
parallelsAlwaysFailFast()
|
parallelsAlwaysFailFast()
|
||||||
preserveStashes(buildCount: 5)
|
preserveStashes(buildCount: 5)
|
||||||
|
|
||||||
}
|
}
|
||||||
agent {
|
agent {
|
||||||
kubernetes {
|
kubernetes {
|
||||||
@ -87,7 +88,9 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('Install') {
|
stage('Install') {
|
||||||
steps {
|
steps {
|
||||||
|
|
||||||
container('main') {
|
container('main') {
|
||||||
|
stash includes: 'tests/**', name: 'testCode', useDefaultExcludes: false
|
||||||
dir ('tests/scripts') {
|
dir ('tests/scripts') {
|
||||||
script {
|
script {
|
||||||
sh 'printenv'
|
sh 'printenv'
|
||||||
@ -137,6 +140,10 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('E2E Test'){
|
stage('E2E Test'){
|
||||||
|
options {
|
||||||
|
skipDefaultCheckout()
|
||||||
|
}
|
||||||
|
|
||||||
agent {
|
agent {
|
||||||
kubernetes {
|
kubernetes {
|
||||||
label 'milvus-qa-e2e-test-pr'
|
label 'milvus-qa-e2e-test-pr'
|
||||||
@ -148,6 +155,10 @@ pipeline {
|
|||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
container('pytest') {
|
container('pytest') {
|
||||||
|
unstash('testCode')
|
||||||
|
script {
|
||||||
|
sh 'ls -lah'
|
||||||
|
}
|
||||||
dir ('tests/scripts') {
|
dir ('tests/scripts') {
|
||||||
script {
|
script {
|
||||||
def release_name=sh(returnStdout: true, script: './get_release_name.sh')
|
def release_name=sh(returnStdout: true, script: './get_release_name.sh')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user