Skip to content
Permalink
Browse files

[FIXED JENKINS-26684] Escape special chars in maven build step arguments

(cherry picked from commit 58a41bc)
  • Loading branch information...
olivergondza committed Feb 8, 2015
1 parent 6e94ee3 commit 9eaba2af9f0fa2649390f83b9b67fe6ee22fe1ad
Showing with 4 additions and 0 deletions.
  1. +4 −0 core/src/main/java/hudson/tasks/Maven.java
@@ -322,6 +322,10 @@ public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListene
wrapUpArguments(args,normalizedTarget,build,launcher,listener);

buildEnvVars(env, mi);

if (!launcher.isUnix()) {
args = args.toWindowsCommand();
}

try {
MavenConsoleAnnotator mca = new MavenConsoleAnnotator(listener.getLogger(),build.getCharset());

0 comments on commit 9eaba2a

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