From 415b36b53c09240835209cd9250bc1dfc9fca53b Mon Sep 17 00:00:00 2001 From: Zofia Galla Date: Sun, 11 Apr 2021 18:55:26 +0200 Subject: [PATCH] Update Jenkinsfile_stats - test scripted --- Jenkinsfile_stats | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/Jenkinsfile_stats b/Jenkinsfile_stats index 69a8185..837d625 100644 --- a/Jenkinsfile_stats +++ b/Jenkinsfile_stats @@ -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}' } \ No newline at end of file