35 lines
820 B
Groovy
35 lines
820 B
Groovy
pipeline {
|
|
agent {
|
|
dockerfile true
|
|
}
|
|
|
|
parameters {
|
|
buildSelector(
|
|
defaultSelector: lastSuccessful(),
|
|
description: 'Which build to use for copying training artifacts',
|
|
name: 'WHICH_BUILD_TRAIN'
|
|
)
|
|
}
|
|
|
|
stages {
|
|
stage('copy artifacts')
|
|
{
|
|
steps
|
|
{
|
|
copyArtifacts(fingerprintArtifacts: true, projectName: 's434788-training/mlflow', selector: buildParameter('WHICH_BUILD_TRAIN'))
|
|
}
|
|
}
|
|
|
|
stage('predict')
|
|
{
|
|
steps
|
|
{
|
|
catchError {
|
|
sh 'ls -al'
|
|
sh 'python3 predict434788.py'
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
} |