ium_470607/lab2/Jenkinsfile_dataset_stats
2021-04-02 22:14:19 +02:00

28 lines
750 B
Plaintext

pipeline {
agent any
parameters {
buildSelector(
defaultSelector: upstream(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR')
}
stages {
stage('copy artifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's470607-create-dataset', selector: buildParameter('BUILD_SELECTOR')
}
}
stage('stats') {
steps {
sh 'chmod +x ./lab2/dataset-stats.sh'
sh './lab2/dataset-stats.sh'
}
}
stage('archive artifacts') {
steps {
archiveArtifacts 'stats.txt'
}
}
}
}