Update Jenkinsfile-stats
This commit is contained in:
parent
e5d94a4a06
commit
f4c10a9026
@ -1,51 +1,52 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
parameters {
|
||||
buildSelector(
|
||||
defaultSelector: lastSuccessful(),
|
||||
description: 'Which build to use for copying artifacts',
|
||||
name: 'BUILD_SELECTOR'
|
||||
)
|
||||
string(
|
||||
defaultValue: '1000',
|
||||
description: 'CUTOFF',
|
||||
name: 'CUTOFF',
|
||||
trim: false
|
||||
)
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Copy artifacts') {
|
||||
steps {
|
||||
script {
|
||||
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s464962-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
echo 'Artifacts copied successfully.'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Set execute permission') {
|
||||
steps {
|
||||
script {
|
||||
sh 'chmod +x dataset-stats.sh'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Run shell script') {
|
||||
steps {
|
||||
script {
|
||||
sh './dataset-stats.sh'
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
archiveArtifacts artifacts: 'stats.txt', allowEmptyArchive: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
parameters {
|
||||
choice(
|
||||
choices: ['lastSuccessful()', 'lastStable()', 'specificBuild()', 'savedBuilds()', 'upstreamBuild()', 'downstreamBuild()'],
|
||||
defaultValue: 'lastSuccessful()',
|
||||
description: 'Which build to use for copying artifacts',
|
||||
name: 'BUILD_SELECTOR'
|
||||
)
|
||||
string(
|
||||
defaultValue: '1000',
|
||||
description: 'CUTOFF',
|
||||
name: 'CUTOFF',
|
||||
trim: false
|
||||
)
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Copy artifacts') {
|
||||
steps {
|
||||
script {
|
||||
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s464962-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
echo 'Artifacts copied successfully.'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Set execute permission') {
|
||||
steps {
|
||||
script {
|
||||
sh 'chmod +x dataset-stats.sh'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Run shell script') {
|
||||
steps {
|
||||
script {
|
||||
sh './dataset-stats.sh'
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
archiveArtifacts artifacts: 'stats.txt', allowEmptyArchive: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user