-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
None
-
Windows
I have a 2-step build process:
1. Copy artifact from another project
2. Invoke top-level Maven artifact
I'm using parameterized build with a "Build selector for Copy Artifact" (parameter name: which_build).
When I start the build and select "Latest successful build" option with "Stable build only" unchecked the generated parameter value will not be escaped for Maven command line and the build fails (on Windows):
"e:\Program Files\apache-maven-3.0.3\bin\mvn.bat" -Dwhich_build=<StatusBuildSelector/> -e ...
When I have "Stable build only" checked, the build runs fine as the following command line is used with XML tags correctly escaped:
"e:\Program Files\apache-maven-3.0.3\bin\mvn.bat" "-Dwhich_build=<StatusBuildSelector> <stable>true</stable></StatusBuildSelector>" -e ...
(Noted added by ikedam)
This can be reproduced without copyartifact plugin:
- Create a new free style project "mavenbuildertest"
- Check "This build is parameterized"
- Add "String Parameter":
- Name: which_build
- Default Value: <StatusBuildSelector/>
- Add "Invoke top-level Maven targets"
- Trigger build and it results in calling following command:
[mavenbuildertest] $ mvn.bat -Dwhich_build=<StatusBuildSelector/> The syntax of the command is incorrect.
- is duplicated by
-
JENKINS-11386 Build selector for Copy Artifact generates invalid command line
- Resolved
-
JENKINS-11387 Build selector for Copy Artifact generates invalid command line
- Resolved
-
JENKINS-11388 Build selector for Copy Artifact generates invalid command line
- Resolved