From 004c310d0e39ffc34ee7a4dab408b030680c2a97 Mon Sep 17 00:00:00 2001 From: Marcus Holl Date: Tue, 28 Aug 2018 10:04:13 +0200 Subject: [PATCH] Emit cm command line to log. --- src/com/sap/piper/cm/ChangeManagement.groovy | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/com/sap/piper/cm/ChangeManagement.groovy b/src/com/sap/piper/cm/ChangeManagement.groovy index 08d4472fc..62fe5e72d 100644 --- a/src/com/sap/piper/cm/ChangeManagement.groovy +++ b/src/com/sap/piper/cm/ChangeManagement.groovy @@ -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; }