add build selector
This commit is contained in:
parent
707719b5b4
commit
13aa933d27
@ -3,15 +3,11 @@ pipeline {
|
|||||||
dockerfile true
|
dockerfile true
|
||||||
}
|
}
|
||||||
parameters{
|
parameters{
|
||||||
string(
|
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'main', name: 'BRANCH', type: 'PT_BRANCH'
|
||||||
defaultValue: 'master',
|
buildSelector(
|
||||||
description: 'training branch name',
|
defaultSelector: lastSuccessful(),
|
||||||
name: 'TRAINING_BRANCH'
|
description: 'Which build to use for copying artifacts',
|
||||||
)
|
name: 'BUILD_SELECTOR'
|
||||||
password(
|
|
||||||
defaultValue: '',
|
|
||||||
description: 'JENKINS password',
|
|
||||||
name: 'JENKINS_KEY'
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
@ -35,7 +31,7 @@ pipeline {
|
|||||||
stage('Copy') {
|
stage('Copy') {
|
||||||
steps {
|
steps {
|
||||||
copyArtifacts projectName: 's444417-create-dataset'
|
copyArtifacts projectName: 's444417-create-dataset'
|
||||||
copyArtifacts projectName: 's444417-training/$TRAINING_BRANCH'
|
copyArtifacts projectName: 's444417-training/$BRANCH'
|
||||||
sh 'python3 ./src/evalScript.py'
|
sh 'python3 ./src/evalScript.py'
|
||||||
archiveArtifacts 'trainResults.csv'
|
archiveArtifacts 'trainResults.csv'
|
||||||
sh "ls -la"
|
sh "ls -la"
|
||||||
|
Loading…
Reference in New Issue
Block a user