2021-03-28 22:32:17 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
parameters {
|
|
|
|
buildSelector(defaultSelector:
|
|
|
|
lastSuccessful(),
|
|
|
|
description: 'Which build to use for copying artifacts',
|
|
|
|
name: 'BUILD_SELECTOR')
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage("copyArtifacts"){
|
|
|
|
steps {
|
|
|
|
copyArtifacts fingerprintArtifacts: true,
|
|
|
|
projectName: 's434695-create-dataset',
|
|
|
|
selector: buildParameter('BUILD_SELECTOR')
|
|
|
|
sh "chmod +x ./stats.sh"
|
|
|
|
sh "./stats.sh"
|
|
|
|
archiveArtifacts "stats.txt"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('archiveArtifacts') {
|
|
|
|
steps {
|
|
|
|
archiveArtifacts 'stats.txt'
|
2021-03-28 22:35:55 +02:00
|
|
|
}
|
2021-03-28 22:32:17 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|