1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00

Do not handover verbose flag explicitly to go binary

It is sufficient to have the verbose flag in the configuration.
This commit is contained in:
Marcus Holl 2019-12-20 11:51:43 +01:00
parent 8d074dbd96
commit aba476a22d

View File

@ -89,7 +89,7 @@ void call(Map parameters = [:]) {
// There is a name provided in the metadata file. But we do not provide a docker image for that. // There is a name provided in the metadata file. But we do not provide a docker image for that.
// The user has to build that for her/his own. How do we expect to configure this? // The user has to build that for her/his own. How do we expect to configure this?
String projectConfigScript = "./piper ${parameters.verbose ? '--verbose' :''} getConfig --stepMetadata '${METADATA_FOLDER}/${METADATA_FILE}' --defaultConfig ${configFiles}" String projectConfigScript = "./piper getConfig --stepMetadata '${METADATA_FOLDER}/${METADATA_FILE}' --defaultConfig ${configFiles}"
String contextConfigScript = projectConfigScript + " --contextConfig" String contextConfigScript = projectConfigScript + " --contextConfig"
Map projectConfig = readJSON (text: sh(returnStdout: true, script: projectConfigScript)) Map projectConfig = readJSON (text: sh(returnStdout: true, script: projectConfigScript))
Map contextConfig = readJSON (text: sh(returnStdout: true, script: contextConfigScript)) Map contextConfig = readJSON (text: sh(returnStdout: true, script: contextConfigScript))
@ -137,7 +137,7 @@ void call(Map parameters = [:]) {
dockerExecute([script: this].plus(config.docker)) { dockerExecute([script: this].plus(config.docker)) {
xsDeployStdout = sh returnStdout: true, script: """#!/bin/bash xsDeployStdout = sh returnStdout: true, script: """#!/bin/bash
./piper ${parameters.verbose ? '--verbose' : ''} xsDeploy --defaultConfig ${configFiles} --user \${USERNAME} --password \${PASSWORD} ${operationId ? "--operationId " + operationId : "" } ./piper xsDeploy --defaultConfig ${configFiles} --user \${USERNAME} --password \${PASSWORD} ${operationId ? "--operationId " + operationId : "" }
""" """
} }