mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
Emit cm command line to log.
This commit is contained in:
parent
8c84bc67cd
commit
004c310d0e
@ -107,10 +107,13 @@ public class ChangeManagement implements Serializable {
|
|||||||
credentialsId: credentialsId,
|
credentialsId: credentialsId,
|
||||||
passwordVariable: 'password',
|
passwordVariable: 'password',
|
||||||
usernameVariable: 'username')]) {
|
usernameVariable: 'username')]) {
|
||||||
def returnValue = script.sh(returnStatus: true,
|
def cmScript = getCMCommandLine(endpoint, script.username, script.password,
|
||||||
script: getCMCommandLine(endpoint, script.username, script.password,
|
|
||||||
command, args,
|
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;
|
return returnValue;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user