Fix Jenkinsfile train
Some checks failed
s434704-training/pipeline/head There was a failure building this commit

This commit is contained in:
Wojciech Jarmosz 2021-05-15 04:15:41 +02:00
parent 9aa2b7d4ad
commit 8929851757

View File

@ -3,10 +3,10 @@ pipeline {
dockerfile true
}
parameters {
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
string(name: 'epochs', description: 'epochs number', defaultValue: '100')
string(name: 'verbose', description: 'verbose number', defaultValue: '0')
string(name: 'epochs', description: 'epochs number', defaultValue: '100', trim: false)
string(name: 'verbose', description: 'verbose number', defaultValue: '0', trim: false)
buildSelector(defaultSelector: lastSuccessful(), description: 'Use latest build', name: 'BUILD_SELECTOR')
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
}
stages {
stage("Copy artifacts"){
@ -16,7 +16,7 @@ pipeline {
}
stage("Run training"){
steps {
sh "python3 training.py ${params.verbose} ${params.epochs}"
sh "python3 training.py ${verbose} ${epochs}"
}
}
stage('Save trained model files') {