pipeline { agent any parameters{ buildSelector( defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR' ) } stages { stage('Checkout') { steps { checkout scmGit( branches: [[name: '*/master']], extensions: [cleanBeforeCheckout()], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s487183/ium_z487183.git']] ) } } stage('Prepare stats') { agent { // no idea why it doesn't work // docker { // image 'mmoryl/ium:latest' // reuseNode true // } dockerfile { filename 'Lab4.dockerfile' reuseNode true } } steps { copyArtifacts projectName: 'z487183-create-dataset' sh './prepare-stats.sh' sh 'mkdir sacred-files' sh 'python3 property_model.py' sh 'python3 predict_values.py' // archiveArtifacts 'test_predictions.csv' // archiveArtifacts 'train_predictions.csv' // archiveArtifacts 'dev_predictions.csv' // archiveArtifacts 'stats.txt' archiveArtifacts 'my_runs/**' } } } }