pipeline { agent { docker { image 's444409-create-dataset' } } parameters { string( defaultValue: '{\\"inputs\\": [[0.51, 0.86], [0.79, 0.79], [0.74, 0.77], [0.66, 0.73]]}', description: 'Input', name: 'INPUT', trim: true ) buildSelector( defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR' ) } stages { stage('Get dataset from artifact') { steps { copyArtifacts projectName: 's444356-training/master', selector: buildParameter('BUILD_SELECTOR') } } stage('Predict values using model from artifact') { steps { sh "echo ${params.INPUT} > input_example.json" sh "python predict_s444356.py" } } } }