28 lines
489 B
Groovy
28 lines
489 B
Groovy
pipeline {
|
|
agent {dockerfile true}
|
|
|
|
stages {
|
|
stage('Sh script') {
|
|
steps {
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
|
sh 'chmod +x run.sh'
|
|
sh './run.sh'
|
|
}
|
|
|
|
}
|
|
}
|
|
stage('Archive artifacts') {
|
|
steps{
|
|
archiveArtifacts artifacts: 'movies_*.csv'
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
success {
|
|
|
|
build job: 's434684-training/master'
|
|
}
|
|
}
|
|
}
|