2021-03-28 18:50:18 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
parameters {
|
|
|
|
buildSelector(defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR')
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage("Clone repo & print stats"){
|
|
|
|
steps {
|
2021-03-28 18:56:25 +02:00
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's434704-create-dataset', selector: ${params.BUILD_SELECTOR}
|
2021-03-28 18:50:18 +02:00
|
|
|
sh "chmod 777 ./count_files_lines.sh"
|
|
|
|
sh "./count_files_lines.sh"
|
|
|
|
archiveArtifacts "stats.txt"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|