2021-03-25 11:58:05 +01:00
|
|
|
pipeline {
|
2021-05-23 23:39:25 +02:00
|
|
|
agent {
|
|
|
|
dockerfile true
|
2021-05-23 23:02:17 +02:00
|
|
|
}
|
2021-05-15 17:01:54 +02:00
|
|
|
|
2021-05-23 23:39:25 +02:00
|
|
|
parameters {
|
|
|
|
buildSelector(
|
|
|
|
defaultSelector: lastSuccessful(),
|
|
|
|
description: 'Which build to use for copying training artifacts',
|
|
|
|
name: 'WHICH_BUILD_TRAIN'
|
2021-05-15 17:01:54 +02:00
|
|
|
)
|
2021-05-23 23:39:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('copy artifacts')
|
2021-05-16 18:41:24 +02:00
|
|
|
{
|
2021-05-23 23:39:25 +02:00
|
|
|
steps
|
|
|
|
{
|
2021-05-23 23:47:21 +02:00
|
|
|
copyArtifacts(fingerprintArtifacts: true, projectName: 's434788-training/mlflow', selector: buildParameter('WHICH_BUILD_TRAIN'))
|
2021-05-23 23:39:25 +02:00
|
|
|
}
|
2021-05-16 18:41:24 +02:00
|
|
|
}
|
2021-05-23 23:39:25 +02:00
|
|
|
|
|
|
|
stage('predict')
|
2021-05-16 20:33:23 +02:00
|
|
|
{
|
|
|
|
steps
|
|
|
|
{
|
2021-05-23 23:39:25 +02:00
|
|
|
catchError {
|
2021-05-23 23:52:24 +02:00
|
|
|
sh 'ls -al'
|
2021-05-23 23:39:25 +02:00
|
|
|
sh 'python3 predict434788.py'
|
|
|
|
}
|
2021-05-16 20:33:23 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-23 23:39:25 +02:00
|
|
|
}
|
|
|
|
}
|