2021-03-28 18:06:21 +02:00
|
|
|
pipeline {
|
2021-04-11 14:58:41 +02:00
|
|
|
agent {docker { image 'zollinka/ium:latest' }}
|
2021-04-11 14:54:43 +02:00
|
|
|
|
2021-03-28 18:06:21 +02:00
|
|
|
stages {
|
2021-04-11 14:54:43 +02:00
|
|
|
stage('Sh script') {
|
|
|
|
steps {
|
|
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
|
|
|
sh 'chmod +x run.sh'
|
2021-04-11 18:31:58 +02:00
|
|
|
sh '''ls -lah
|
|
|
|
cat /etc/issue'''
|
2021-04-11 14:54:43 +02:00
|
|
|
sh './run.sh > netflix_stats.txt'
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Archive artifacts') {
|
|
|
|
steps{
|
|
|
|
archiveArtifacts artifacts: 'netflix_stats.txt'
|
|
|
|
}
|
|
|
|
}
|
2021-03-28 18:06:21 +02:00
|
|
|
}
|
|
|
|
}
|