Skip to content
Permalink
Browse files

[FIXED JENKINS-17294] mask sensitive variables (Password parameters)

  • Loading branch information
ndeloof committed Mar 20, 2013
1 parent 35b7f8b commit 34589175f314055eed419cabc77250e025056a57
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/main/java/hudson/plugins/gradle/Gradle.java
@@ -187,7 +187,8 @@ private boolean performTask(boolean dryRun, AbstractBuild<?, ?> build, Launcher
}
args.add(exe);
}
args.addKeyValuePairs("-D", fixParameters(build.getBuildVariables()));
Set<String> sensitiveVars = build.getSensitiveBuildVariables();
args.addKeyValuePairs("-D", fixParameters(build.getBuildVariables()), sensitiveVars);
args.addTokenized(normalizedSwitches);
args.addTokenized(normalizedTasks);
if (buildFile != null && buildFile.trim().length() != 0) {

0 comments on commit 3458917

Please sign in to comment.
You can’t perform that action at this time.