Skip to content

Commit

Permalink
[FIXED JENKINS-26684] Escape special chars in maven build step arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
olivergondza committed Feb 8, 2015
1 parent fae41b0 commit 58a41bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/main/java/hudson/tasks/Maven.java
Expand Up @@ -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());
Expand Down

2 comments on commit 58a41bc

@KostyaSha
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't maven in separate plugin now?

@daniel-beck
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Execute top-level Maven targets build step is still in core. JENKINS-26462

Please sign in to comment.