ium_470623/Jenkinsfile_stats
2022-04-11 01:32:47 +02:00

26 lines
674 B
Plaintext

pipeline {
agent {
docker { image 'ium' }
}
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
stage('Copy artifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's470623-create-dataset', selector: buildParameter('BUILD_SELECTOR')
sh 'chmod u+x ./stats.sh'
sh './stats.sh'
}
}
stage('Archive') {
steps {
archiveArtifacts 'stats.txt'
}
}
}
}