2022-03-27 23:57:12 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
parameters{
|
|
|
|
buildSelector(
|
|
|
|
defaultSelector: lastSuccessful(),
|
|
|
|
name: 'BUILD_SELECTOR',
|
|
|
|
description: 'Which build to use for copying artifacts'
|
|
|
|
)
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage("Script") {
|
|
|
|
steps {
|
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's444018-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
2022-03-28 08:20:08 +02:00
|
|
|
sh 'chmod +x stats.sh'
|
2022-03-27 23:57:12 +02:00
|
|
|
sh " ./stats.sh"
|
2022-03-28 08:20:08 +02:00
|
|
|
archiveArtifacts 'stats.txt'
|
2022-03-27 23:57:12 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|