mirror of
https://github.com/SAP/jenkins-library.git
synced 2026-06-19 22:58:55 +02:00
Merge pull request #264 from marcusholl/pr/emitCMCommandsToLog
Emit cm command line to log.
This commit is contained in:
@@ -107,10 +107,13 @@ public class ChangeManagement implements Serializable {
|
||||
credentialsId: credentialsId,
|
||||
passwordVariable: 'password',
|
||||
usernameVariable: 'username')]) {
|
||||
def returnValue = script.sh(returnStatus: true,
|
||||
script: getCMCommandLine(endpoint, script.username, script.password,
|
||||
def cmScript = getCMCommandLine(endpoint, script.username, script.password,
|
||||
command, args,
|
||||
clientOpts))
|
||||
clientOpts)
|
||||
// user and password are masked by withCredentials
|
||||
script.echo """[INFO] Executing command line: "${cmScript}"."""
|
||||
def returnValue = script.sh(returnStatus: true,
|
||||
script: cmScript)
|
||||
return returnValue;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user