From d21141d9e347b693ce191b67381582f1a180665c Mon Sep 17 00:00:00 2001 From: s487178 Date: Wed, 5 Apr 2023 22:28:19 +0200 Subject: [PATCH] jenkinsfile change --- Jenkinsfile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0c07804..370a464 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,14 +14,9 @@ pipeline { } } - stage('Run Python script') { + stage('Run command in Docker container') { steps { - script { - docker.image('ium_s487178').inside { - sh 'python3 body_performance.py > output.txt' - } - archiveArtifacts 'output.txt' - } + sh 'docker run ium_s487178 python3 ./body_performance.py > output.txt' } } }