2021-03-22 12:48:56 +01:00
|
|
|
pipeline {
|
2021-04-11 21:15:58 +02:00
|
|
|
agent {dockerfile true}
|
2021-03-22 12:55:30 +01:00
|
|
|
|
2021-03-22 12:48:56 +01:00
|
|
|
stages {
|
2021-03-28 17:40:07 +02:00
|
|
|
stage('Sh script') {
|
|
|
|
steps {
|
|
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
2021-04-11 14:02:07 +02:00
|
|
|
sh 'chmod +x run.sh'
|
2021-05-02 16:42:18 +02:00
|
|
|
sh './run.sh'
|
2021-03-28 17:40:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Archive artifacts') {
|
2021-03-28 17:44:11 +02:00
|
|
|
steps{
|
2021-05-02 16:42:18 +02:00
|
|
|
archiveArtifacts artifacts: 'movies_*.csv'
|
2021-03-28 17:44:11 +02:00
|
|
|
}
|
2021-03-28 17:40:07 +02:00
|
|
|
}
|
2021-03-22 12:48:56 +01:00
|
|
|
}
|
|
|
|
}
|