Or, as you add arguments to your ArgumentListBuilder, you can specify whether 
each argument should be masked.

  -- Dean

From: Stephen Connolly 
<[email protected]<mailto:[email protected]>>
Reply-To: 
"[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Wednesday, September 12, 2012 9:29 AM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: Re: How to stop passwords used by my scm plugin from appearing the log?

launcher.launch().cmds(argBuildr)
    .masks(masks)
    
.envs(build.getEnvironment(TaskListener.NULL)).stdout(listener.getLogger()).pwd(workspace).join();

Just need a boolean array of sufficient length with the appropriate true values

On Wednesday, 12 September 2012, Stuart Whelan wrote:
My SCM plugin needs to call a command line client..

How can I stop the password being passed to the command line client from 
appearing in the log?

I can see two directions to try, but I have not managed to find out to do 
either:

1) Mask the password from the log..

2) Stop the launcher from outputing the command to the log... When I call the 
launcher I use:
launcher.launch().cmds(argBuildr).envs(build.getEnvironment(TaskListener.NULL)).stdout(listener.getLogger()).pwd(workspace).join();


Any suggestions please?

Thanks!
Stuart.

Reply via email to