ium_434760/Jenkinsfile-trymodel

39 lines
1.0 KiB
Plaintext
Raw Normal View History

2021-05-24 01:40:00 +02:00
pipeline {
agent {
2021-05-24 01:48:11 +02:00
docker { image 'adnovac/ium_s434760:4.1' }
2021-05-24 01:40:00 +02:00
}
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
{
2021-05-24 01:41:40 +02:00
copyArtifacts(fingerprintArtifacts: true, projectName: 's434788-training/mlflow', selector: buildParameter('WHICH_BUILD'))
2021-05-24 01:48:11 +02:00
sh "echo ${json_input} >> input.json"
2021-05-24 01:40:00 +02:00
}
}
stage('test')
{
steps
{
2021-05-24 01:48:11 +02:00
sh 'python3.8 try_model.py'
2021-05-24 01:40:00 +02:00
}
}
stage('archive artifacts') {
steps {
archiveArtifacts 'result.txt'
}
}
}
}