diff --git a/Jenkinsfile b/Jenkinsfile index ad44bc8..e993c9e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,6 +18,7 @@ def isBuildNeeded = false def deleteUnbuild = true def pre_clean = true def post_clean = false +def bin_path = 'bin' if(params.DEBUG) @@ -60,6 +61,10 @@ if(params.POST_CLEAN) { post_clean = params.POST_CLEAN } +if(params.BIN_PATH) +{ + bin_path = params.BIN_PATH +} def printDebug(msg) { @@ -113,7 +118,7 @@ node('test') stage('move_bin_to_ftp') { - sh label: 'copy_binaries', script: 'python ' + scripts_path + 'sftp_test.py -a ' + sftp_host + ' -u ' + sftp_user + ' -p ' + sftp_passwd + ' -g ' + git_folder + ' -f ' + scripts_path + known_hosts + ' -l ' + sftp_path + ' -c /bin' + sh label: 'copy_binaries', script: 'python ' + scripts_path + 'sftp_test.py -a ' + sftp_host + ' -u ' + sftp_user + ' -p ' + sftp_passwd + ' -g ' + git_folder + ' -f ' + scripts_path + known_hosts + ' -l ' + sftp_path + ' -c ' + bin_path }