Use build selector
All checks were successful
s444409-evaluation/pipeline/head This commit looks good
All checks were successful
s444409-evaluation/pipeline/head This commit looks good
This commit is contained in:
parent
8874950fa6
commit
ad21010147
@ -6,12 +6,17 @@ pipeline {
|
|||||||
}
|
}
|
||||||
parameters {
|
parameters {
|
||||||
file 'input_example.json'
|
file 'input_example.json'
|
||||||
|
buildSelector(
|
||||||
|
defaultSelector: lastSuccessful(),
|
||||||
|
description: 'Which build to use for copying artifacts',
|
||||||
|
name: 'BUILD_SELECTOR'
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Get dataset from artifact') {
|
stage('Get dataset from artifact') {
|
||||||
steps {
|
steps {
|
||||||
copyArtifacts projectName: 's444356-training/master', selector: lastSuccessful()
|
copyArtifacts projectName: 's444356-training/master', selector: buildParameter('BUILD_SELECTOR')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Predict values using model from artifact') {
|
stage('Predict values using model from artifact') {
|
||||||
|
Loading…
Reference in New Issue
Block a user