Ant escape incorrectly on Windows

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major
    • Component/s: ant-plugin
    • Environment:
      Windows Server 2012, Windows 7
      Jenkins 1.634
      Ant plugin 1.2
      copyartifact plugin 1.36.1
      chrome browser, IE 11 browser

      Using BuildSelector to give a specific build number the CopyArtifact plugin step works fine.

      In a later step we run an ant script to deploy the artifacts in deploy job workspace now.

      The Ant generated parameter that appears to cause problem is "-DTARGET_BUILD=<SpecificBuildSelector plugin=""copyartifact@1.36.1""> <buildNumber>66</buildNumber></SpecificBuildSelector>"

      When runs gets error
      Target "<buildNumber>66</buildNumber></SpecificBuildSelector> -DBUILD_USER=xxxx" does not exist in the project

      This prevents running deploy job.

      The same deploy job running on Jenkins 1.476 and CopyArtifact plugin 1.29 and Ant 1.1 works.

      We are attempting to upgrade to a newer version of Jenkins and all the newer version use ant 1.2.

            Assignee:
            Armando Fernandez
            Reporter:
            Ruan Berg
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: