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

Running a parametrized build with Copy Artifact's Build Selector breaks Ant functionality on Windows

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • ant-plugin
    • None
    • Hudson Master running on Ubuntu Lucid
      Hudson Slave running on Windows Server 2003 x64, controlled by Hudson Windows Slave Service

      I have a Hudson job where the build needs to be parametrized. One of the required parameters for the build is the version of an artifact from another build. For this, I use "Build selector for Copy Artifact" as one of the user parameters for a build. The problem is that this causes an un-escaped xml tag to be passed in as an environment variable to an Ant build task.

      For example, we have a Copy Artifact parameter by the name "build_selector". The ant target is "test". The ant build task then executes the following: cmd.exe /C '"ant.bat -file build.xml -Dbuild_selector=<StatusBuildSelector/> test && exit %%ERRORLEVEL%%"'. This results in an error message "The system cannot find the file specified.". This is occurring on my Hudson slave running Windows Server 2003 x64. Please let me know if I can provide any additional information in getting this issue resolved. Thank you.

          [JENKINS-7108] Running a parametrized build with Copy Artifact's Build Selector breaks Ant functionality on Windows

          thenava created issue -
          Alan Harder made changes -
          Component/s New: ant [ 15488 ]
          Component/s Original: copyartifact [ 15692 ]
          Summary Original: Running a parametrized build with Copy Artifact's Build Selector breaks Ant functionality New: Running a parametrized build with Copy Artifact's Build Selector breaks Ant functionality on Windows
          Alan Harder made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Alan Harder made changes -
          Link New: This issue is related to JENKINS-7204 [ JENKINS-7204 ]
          Alan Harder made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          Alan Harder made changes -
          Link New: This issue is related to JENKINS-7657 [ JENKINS-7657 ]
          Alan Harder made changes -
          Link New: This issue is related to JENKINS-7442 [ JENKINS-7442 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 137205 ] New: JNJira + In-Review [ 187402 ]

            mindless Alan Harder
            thenava thenava
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: