ium_425850/Jenkinsfile_stats
2023-03-29 00:35:53 +02:00

23 lines
660 B
Plaintext

node {
stage('Preparation') {
properties([
parameters([
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR')
])
])
}
stage('Copy artifacts') {
copyArtifacts fingerprintArtifacts: true, projectName: 's425850-create-dataset', selector: buildParameter('BUILD_SELECTOR')
}
withEnv() {
sh 'chmod u+x ./get_stats.sh'
sh './get_stats.sh'
}
stage('Archive artifacts') {
archiveArtifacts artifacts: 'stats.txt', followSymlinks: false
}
}