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(
|
2021-03-28 19:31:50 +02:00
|
|
|
defaultSelector: upstream(),
|
2021-03-28 18:27:27 +02:00
|
|
|
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:52:56 +02:00
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's470607-create-dataset', selector: buildParameter('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'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|