2021-03-28 17:41:49 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
2021-03-28 18:33:07 +02:00
|
|
|
parameters {
|
2021-03-28 18:27:27 +02:00
|
|
|
buildSelector(
|
|
|
|
defaultSelector: lastSuccessful(),
|
|
|
|
description: 'Which build to use for copying artifacts',
|
|
|
|
name: 'BUILD_SELECTOR')
|
2021-03-28 18:33:07 +02:00
|
|
|
}
|
2021-03-28 17:41:49 +02:00
|
|
|
stages {
|
|
|
|
stage('copy artifacts') {
|
|
|
|
steps {
|
2021-03-28 18:33:07 +02:00
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's470607-create-dataset', selector: "{$params.BUILD_SELECTOR)"
|
2021-03-28 17:41:49 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('stats') {
|
|
|
|
steps {
|
2021-03-28 18:27:27 +02:00
|
|
|
sh 'chmod +x dataset-stats.sh'
|
2021-03-28 17:41:49 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('archive artifacts') {
|
|
|
|
steps {
|
|
|
|
archiveArtifacts 'stats.txt'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|