2022-03-27 19:15:04 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
parameters {
|
|
|
|
buildSelector(
|
|
|
|
defaultSelector: lastSuccessful(),
|
|
|
|
description: 'Which build to use for copying artifacts',
|
|
|
|
name: 'BUILD_SELECTOR'
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Stage 1') {
|
|
|
|
steps {
|
|
|
|
echo 'Hello world but for the second time!'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Copy and proceed') {
|
|
|
|
steps {
|
2022-03-27 19:32:45 +02:00
|
|
|
copyArtifacts filter: 'apps_*.csv', fingerprintArtifacts: true, projectName: 's444517-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
|
|
|
sh 'chmod +x -R ./data_stats.sh'
|
|
|
|
sh './data_stats.sh'
|
|
|
|
archiveArtifacts artifacts: 'stats.txt'
|
2022-03-27 19:15:04 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|