pipeline { agent { dockerfile true } stages { stage('Cloning GIT') { steps { checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s452108/s452108-mlworkshops']]]) } } stage('Copy Artifacts') { steps { copyArtifacts filter: 'averagesrr.txt', fingerprintArtifacts: true, projectName: 's452108-metrics', selector: lastSuccessful() copyArtifacts filter: 'averagewer.txt', fingerprintArtifacts: true, projectName: 's452108-metrics', selector: lastSuccessful() } } stage('Plot') { steps { sh label: '', script: 'python plotwer.py' sh label: '', script: 'python plotsrr.py' } } stage('Archive atifacts') { steps { archiveArtifacts 'plotwer.png' archiveArtifacts 'plotsrr.png' } } } }