fixed Jenkinsfile-stats
This commit is contained in:
parent
112295464c
commit
70897f0e4b
@ -1,19 +1,19 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
|
||||||
parameters{
|
parameters {
|
||||||
buildSelector(
|
buildSelector(
|
||||||
defaultSelector: lastSuccessful(),
|
defaultSelector: lastSuccessful(),
|
||||||
description: 'Which build to use for copying artifacts',
|
description: 'Which build to use for copying artifacts',
|
||||||
name: 'BUILD_SELECTOR'
|
name: 'BUILD_SELECTOR'
|
||||||
)
|
)
|
||||||
string(
|
string(
|
||||||
defaultValue: '1000',
|
defaultValue: '1000',
|
||||||
description: 'CUTOFF',
|
description: 'CUTOFF',
|
||||||
name: 'CUTOFF',
|
name: 'CUTOFF',
|
||||||
trim: false
|
trim: false
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Copy artifacts') {
|
stage('Copy artifacts') {
|
||||||
@ -22,6 +22,11 @@ pipeline {
|
|||||||
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s464906-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s464906-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
post {
|
||||||
|
success {
|
||||||
|
echo 'Artifacts copied successfully.'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
stage('Run shell script') {
|
stage('Run shell script') {
|
||||||
steps {
|
steps {
|
||||||
|
Loading…
Reference in New Issue
Block a user