xebialabs-community / xlr-xldeploy-plugin

The xlr-xldeploy-plugin is a XL Release plugin that allows to start a control task, start a deployment, migrate a deployment package to another server or get the latest version of an application on XL Deploy.
MIT License
9 stars 27 forks source link

cli.py is printing password in case of system exit 1 #102

Open yangyangto opened 5 years ago

yangyangto commented 5 years ago

Hi,

When the system exit code is 1, the err is being printed out. This also prints the password. See https://github.com/xebialabs-community/xlr-xldeploy-plugin/blob/master/src/main/resources/xlr_xldeploy/cli.py#L30

In my example, the username is tutti and the password is frutti. See below for an example output:

[com.xebialabs.overthere.RuntimeIOException: Cannot start command [/tmp/bin/cli.sh -quiet -username admin -password **** -source /appl/xlrelease/scripts/add_application.py -- "" /appl/xlrelease/scripts/xldeploy_config_passwords.json tutti frutti] on [local:] at com.xebialabs.overthere.local.LocalConnection.startProcess(LocalConnection.java:144) at

How we can suppress the password in the output?