diff --git a/Jenkinsfile b/Jenkinsfile index b1a08f1..e9a0d15 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,9 +14,14 @@ pipeline { } } - stage('Run command in Docker container') { + stage('Run Python script') { steps { - sh 'docker run ium_s487178 python3 ./body_performance.py' + script { + docker.image('ium_s487178').inside { + sh 'python my_script.py > output.txt' + } + archiveArtifacts 'output.txt' + } } } }