29 lines
855 B
Plaintext
29 lines
855 B
Plaintext
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')
|
|
}
|
|
|
|
stage('Calculate Dataset Statistics') {
|
|
sh 'chmod +x dataset-stats.sh'
|
|
sh './dataset-stats.sh'
|
|
}
|
|
stage('Save artefact') {
|
|
archiveArtifacts artifacts: 'stats.txt', fingerprint: true
|
|
}
|
|
}
|