22 lines
422 B
Groovy
22 lines
422 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 > netflix_stats.txt'
|
|
}
|
|
|
|
}
|
|
}
|
|
stage('Archive artifacts') {
|
|
steps{
|
|
archiveArtifacts artifacts: 'netflix_stats.txt'
|
|
}
|
|
}
|
|
}
|
|
}
|