ium_478841/jenkins/Jenkinsfile

24 lines
881 B
Plaintext
Raw Permalink Normal View History

2022-03-26 17:09:29 +01:00
node {
2022-03-28 00:17:37 +02:00
// properties([[$class: 'GogsProjectProperty', gogsBranchFilter: '', gogsSecret: <object of type hudson.util.Secret>, gogsUsePayload: false], [$class: 'RebuildSettings', autoRebuild: false, rebuildDisabled: false], parameters([string('CUTOFF')]), pipelineTriggers([pollSCM('')])])
2022-03-27 23:34:18 +02:00
stage('checkout: Check out from version control') {
git 'https://git.wmi.amu.edu.pl/s478841/ium_478841.git'
}
2022-03-26 17:11:22 +01:00
stage('Install depends.') {
sh 'pip install --user -r requirements.txt'
2022-03-26 15:36:44 +01:00
}
2022-03-27 23:34:18 +02:00
stage('sh: Shell script') {
2022-03-26 17:11:22 +01:00
withEnv([
"KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}"
]) {
2022-03-27 23:34:18 +02:00
sh 'chmod u+x ./load_data.sh'
sh './load_data.sh'
}
}
2022-03-28 00:17:37 +02:00
stage('Archive arifacts') {
archiveArtifacts artifacts: 'avocado.data*', followSymlinks: false
2022-03-26 17:11:22 +01:00
}
2022-03-26 17:09:29 +01:00
}
2022-03-28 00:17:37 +02:00