ium_434760/Jenkinsfile-trymodel
2021-05-24 01:41:40 +02:00

40 lines
1.0 KiB
Plaintext

pipeline {
agent {
docker { image 'adnovac/ium_s434760:4' }
}
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'WHICH_BUILD'
)
string(
defaultValue: '',
description: 'json input',
name: 'json_input'
)
}
stages {
stage('copy artifacts')
{
steps
{
copyArtifacts(fingerprintArtifacts: true, projectName: 's434788-training/mlflow', selector: buildParameter('WHICH_BUILD'))
}
}
stage('test')
{
steps
{
catchError {
sh 'python3.8 try_model.py'
}
}
}
stage('archive artifacts') {
steps {
archiveArtifacts 'result.txt'
}
}
}
}