ium_444517/Jenkinsfile_2
2022-03-27 19:32:45 +02:00

29 lines
782 B
Plaintext

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 {
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'
}
}
}
}