Update Jenkinsfile_stats - test scripted

This commit is contained in:
Zofia Galla 2021-04-11 18:55:26 +02:00
parent 77a03ecfca
commit 415b36b53c

View File

@ -1,23 +1,11 @@
pipeline { node {
agent {docker { image 'zollinka/ium:latest' }} docker.image('zollinka/ium:latest').withRun('-t') { c ->
docker.image('zollinka/ium:latest').inside {
stages { stage('Test') {
stage('Sh script') { sh 'cat /etc/issue'
steps { sh 'ls -lah'
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'chmod +x run.sh'
sh '''ls -lah
cat /etc/issue'''
sh './run.sh > netflix_stats.txt'
}
}
}
stage('Archive artifacts') {
steps{
archiveArtifacts artifacts: 'netflix_stats.txt'
} }
} }
} }
sh 'docker logs ${c.id}'
} }