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
|
|
|
|
{
|
|
|
|
copyArtifacts(fingerprintArtifacts: true, projectName: 's434788-training/master', selector: buildParameter('WHICH_BUILD_TRAIN'))
|
|
|
|
}
|
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 {
|
|
|
|
sh 'python3 predict434788.py'
|
|
|
|
}
|
2021-05-16 20:33:23 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-23 23:39:25 +02:00
|
|
|
}
|
|
|
|
}
|