Update 'lab8/Jenkinsfile_predict_artifact'

This commit is contained in:
Kacper Dudzic 2022-05-14 15:45:55 +02:00
parent 5248dca6f7
commit 981c7f5f01

View File

@ -21,7 +21,7 @@ pipeline {
steps { steps {
echo 'Copying model from s444417-training...' echo 'Copying model from s444417-training...'
copyArtifacts filter: 'mlruns.tar.gz', projectName: 's444417-training/master', selector: buildParameter('BUILD_SELECTOR') copyArtifacts filter: 'mlruns.tar.gz', projectName: 's444417-training/master', selector: buildParameter('BUILD_SELECTOR')
sh 'mkdir mlruns_s444417 && tar xvzf mlruns.tar.gz -C mlruns_s444417 --strip-components 1' sh 'mkdir -p mlruns_s444417 && tar xvzf mlruns.tar.gz -C mlruns_s444417 --strip-components 1'
echo 'Model copied' echo 'Model copied'
echo 'Making a prediction...' echo 'Making a prediction...'
sh "echo ${params.INPUT} > input_example.json" sh "echo ${params.INPUT} > input_example.json"