From e1c01f43bf8fa8c73ee208fc1662b040621bcb4b Mon Sep 17 00:00:00 2001 From: Norbert Walkowiak Date: Tue, 18 Apr 2023 08:31:13 +0200 Subject: [PATCH] update: UM_04.Konteneryzacja zadanie 3.2 --- Jenkinsfile-dataset-stats | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile-dataset-stats b/Jenkinsfile-dataset-stats index b06213d..e703f6d 100644 --- a/Jenkinsfile-dataset-stats +++ b/Jenkinsfile-dataset-stats @@ -22,12 +22,10 @@ pipeline { ) } } - stage('Shell Script') { + stage('Run a shell script in a docker container') { steps { - // Stats - sh 'chmod +x s487175-dataset-stats-script.sh' - // Run script - sh './s487175-dataset-stats-script.sh > output.txt' + //Docker image - pobieranie i uruchomienie + sh 'docker run nbrt10/ium:v1 python3 /app/s487175-dataset-stats-script.sh > output.txt' } } stage('Archive file') {