Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-11387

Build selector for Copy Artifact generates invalid command line

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 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 ...

            mindless Alan Harder
            ambro23 Milan Farkas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: