2021-03-28 18:50:18 +02:00
|
|
|
pipeline {
|
2021-04-10 22:26:08 +02:00
|
|
|
agent {
|
|
|
|
docker { image 'jarmosz/ium:1.1' }
|
|
|
|
}
|
2021-03-28 18:50:18 +02:00
|
|
|
parameters {
|
|
|
|
buildSelector(defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR')
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage("Clone repo & print stats"){
|
|
|
|
steps {
|
2021-04-10 22:39:26 +02:00
|
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
2021-04-10 22:26:08 +02:00
|
|
|
sh "python3 script.py"
|
2021-03-28 19:02:08 +02:00
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's434704-create-dataset', selector: buildParameter('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"
|
|
|
|
}
|
2021-04-10 22:39:26 +02:00
|
|
|
}
|
2021-03-28 18:50:18 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|