ium_478841/jenkins/Jenkinsfile
2022-04-03 19:39:46 +02:00

24 lines
881 B
Groovy

node {
// properties([[$class: 'GogsProjectProperty', gogsBranchFilter: '', gogsSecret: <object of type hudson.util.Secret>, gogsUsePayload: false], [$class: 'RebuildSettings', autoRebuild: false, rebuildDisabled: false], parameters([string('CUTOFF')]), pipelineTriggers([pollSCM('')])])
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'
}
}
stage('Archive arifacts') {
archiveArtifacts artifacts: 'avocado.data*', followSymlinks: false
}
}