pipeline { agent any stages { stage('Checkout') { steps { git branch: 'master', url: 'https://git.wmi.amu.edu.pl/s487178/ium_s487178.git' } } stage('Build Docker image') { steps { sh 'docker build -t ium_s487178 -f dockerfile3 .' } } stage('Run command in Docker container') { steps { script { def csv_filename = 'body_performance_processed.csv' sh "docker run -v ${env.WORKSPACE}/artifacts:/app/artifacts ium_s487178 python3 ./python_dataset_create.py" if (fileExists("artifacts/${csv_filename}")) { archiveArtifacts artifacts: "artifacts/${csv_filename}" } sh "ls -l ./artifacts" } } } } post { always { archiveArtifacts 'output.txt' } } }