ium_434704/Jenkinsfile_stats
2021-05-14 00:20:04 +02:00

22 lines
797 B
Plaintext

pipeline {
agent {
docker { image 'jarmosz/ium:1.1' }
}
parameters {
buildSelector(defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR')
}
stages {
stage("Clone repo & print stats"){
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's434704-create-dataset', selector: buildParameter('BUILD_SELECTOR')
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh "python3 script.py"
sh "chmod 777 ./count_files_lines.sh"
sh "./count_files_lines.sh"
archiveArtifacts "stats.txt"
}
}
}
}
}