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 {
agent {docker { image 'zollinka/ium:latest' }}
stages {
stage('Sh script') {
steps {
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'
node {
docker.image('zollinka/ium:latest').withRun('-t') { c ->
docker.image('zollinka/ium:latest').inside {
stage('Test') {
sh 'cat /etc/issue'
sh 'ls -lah'
}
}
}
sh 'docker logs ${c.id}'
}