mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
added more convenience method
This commit is contained in:
1 parent
c462cb634c
commit
f83d4550fc
1 file changed
+8
-2
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
package hudson.util;
|
||||
|
||||
import com.infradna.tool.bridge_method_injector.WithBridgeMethods;
|
||||
import hudson.Launcher;
|
||||
import hudson.Util;
|
||||
|
||||
@@ -367,8 +368,13 @@ public class ArgumentListBuilder implements Serializable, Cloneable {
|
||||
* Add a masked argument
|
||||
* @param string the argument
|
||||
*/
|
||||
public void addMasked(String string) {
|
||||
add(string, true);
|
||||
@WithBridgeMethods(void.class)
|
||||
public ArgumentListBuilder addMasked(String string) {
|
||||
return add(string, true);
|
||||
}
|
||||
|
||||
public ArgumentListBuilder addMasked(Secret s) {
|
||||
return add(Secret.toString(s),true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user