ium_z444510/Jenkinsfile-dataset-stats
piotrwrzodak c1399dc53a .
2023-04-21 00:00:33 +02:00

31 lines
863 B
Plaintext

pipeline {
agent any
properties([
parameters([
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
])
])
stages {
stage('Copy Artifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s444510-create-dataset', selector: buildParameter('BUILD_SELECTOR')
}
}
stage('Calculate Dataset Statistics') {
steps {
sh 'chmod +x dataset-stats.sh'
sh './dataset-stats.sh'
}
post {
always {
archiveArtifacts artifacts: 'stats.txt.gz', fingerprint: true
}
}
}
}
}