pipeline { agent { docker { image 'maciejczajka' args '-v /mlruns:/mlruns' } } parameters { string( defaultValue: '100', description: 'Number of epochs', name: 'EPOCHS', trim: false ) } stages { stage('Script'){ steps { copyArtifacts filter: '*', projectName: 's444356-create-dataset' sh 'rm -r my_model' sh "python Biblioteka_DL/dllib-mlflow.py $EPOCHS" archiveArtifacts artifacts: 'games_model.pkl' archiveArtifacts artifacts: 'mlruns/**' archiveArtifacts artifacts: 'my_model/**' sh 'rm -r mlruns' sh 'rm -r my_model' } } } }