From 8929851757f50986d6b7e2fe61906a9c43a9f6cd Mon Sep 17 00:00:00 2001 From: Wojciech Jarmosz Date: Sat, 15 May 2021 04:15:41 +0200 Subject: [PATCH] Fix Jenkinsfile train --- Jenkinsfile_train | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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') {