pipeline { agent { docker { image 's478841-image:latest' } } parameters { string( defaultValue: '{\\"inputs\\": [[0.76, 0.71], [0.6, 0.73], [0.75, 0.75], [0.91, 0.85]]}', description: 'Input data', name: 'INPUT', trim: true ) buildSelector( defaultSelector: lastSuccessful(), description: 'Build used for artifacts copying', name: 'BUILD_SELECTOR' ) } stages { stage('Load artifacts') { steps { copyArtifacts projectName: 's444356-training/master', selector: buildParameter('BUILD_SELECTOR') } } stage('Predict using artifact') { steps { sh "echo ${params.INPUT} > scripts/input_example.json" sh 'python3 scripts/predict_s444356.py' } } } }