ium_478841/Jenkinsfile
2022-03-27 23:34:18 +02:00

23 lines
605 B
Groovy

node {
stage('checkout: Check out from version control') {
git 'https://git.wmi.amu.edu.pl/s478841/ium_478841.git'
}
stage('Install depends.') {
sh 'pip install --user -r requirements.txt'
}
stage('sh: Shell script') {
withEnv([
"KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}"
]) {
sh 'chmod u+x ./load_data.sh'
sh './load_data.sh'
}
}
post {
always {
archiveArtifacts artifacts: 'avocado.data*', onlyIfSuccessful: true
}
}
}