2023-04-21 00:39:01 +02:00
|
|
|
node {
|
|
|
|
stage('Preparation') {
|
|
|
|
properties([
|
|
|
|
parameters([
|
|
|
|
buildSelector(
|
|
|
|
defaultSelector: lastSuccessful(),
|
|
|
|
description: 'Which build to use for copying artifacts',
|
|
|
|
name: 'BUILD_SELECTOR'
|
|
|
|
)
|
|
|
|
])
|
|
|
|
])
|
|
|
|
}
|
|
|
|
stage('checkout: Check out from version control') {
|
|
|
|
checkout scm
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Copy Artifacts') {
|
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s444510-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
2023-04-21 00:11:12 +02:00
|
|
|
}
|
2023-04-20 23:58:00 +02:00
|
|
|
|
2023-04-21 00:39:01 +02:00
|
|
|
stage('Calculate Dataset Statistics') {
|
|
|
|
sh 'chmod +x dataset-stats.sh'
|
|
|
|
sh './dataset-stats.sh'
|
|
|
|
}
|
|
|
|
stage('Save artefact') {
|
2023-04-21 01:01:51 +02:00
|
|
|
archiveArtifacts artifacts: 'data/stats.txt', fingerprint: true
|
2023-04-20 23:58:00 +02:00
|
|
|
}
|
2023-04-21 00:39:01 +02:00
|
|
|
}
|