diff --git a/Jenkinsfile_train b/Jenkinsfile_train index 42000a2..bb69b03 100644 --- a/Jenkinsfile_train +++ b/Jenkinsfile_train @@ -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') {