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

Invoke Ant - Build failed if parameters contain spaces due to changes in quotes since 1.653

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • ant-plugin, core
    • Jenkins greater than 1.652

      IStarting from Jenkins 1.653 with the same plugins versions we noticed that the ant command is created differently and it does not work with our configuration.

      Add build step Invoke Ant with the following values:

      Ant Version: ANT_1.9.4
      Targets: -lib D:\ANT_1.9.4\ANT_libs Alpha.i
      Build File: buildInstallers.xml
      Properties:
      iaPath=${InstallAnywhereLocation}
      iaOutputDir=$WORKSPACE
      iaMergeModulesDir=

      buildView=$WORKSPACE
      buildLogsPath=$WORKSPACE
      installersPath=$WORKSPACE

      1.652 - Command output
      cmd.exe /C '"D:\ANT_1.9.4\bin\ant.bat -file buildInstallers.xml -DiaOutputDir=D:\JENKINS-WS\Alpha\workspace "-DiaPath=C:\Program Files (x86)\InstallAnywhere 2015" -DbuildLogsPath=D:\JENKINS-WS\Alpha\workspace -DiaMergeModulesDir="" -DbuildView=D:\JENKINS-WS\Alpha\workspace -DinstallersPath=D:\JENKINS-WS\Alpha\workspace -lib D:\ANT_1.9.4\ANT_libs Alpha.i && exit %%ERRORLEVEL%%"'

      1.653 and 1.654 - Command output
      cmd.exe /C "D:\ANT_1.9.4\bin\ant.bat -file buildInstallers.xml -DiaOutputDir=D:\JENKINS-WS\Alpha\workspace '"-DiaPath=C:\Program Files (x86)\InstallAnywhere 2015"' -DbuildLogsPath=D:\JENKINS-WS\Alpha\workspace -DiaMergeModulesDir= -DbuildView=D:\JENKINS-WS\Alpha\workspace -DinstallersPath=D:\JENKINS-WS\Alpha\workspace -lib D:\ANT_1.9.4\ANT_libs Alpha.i && exit %%ERRORLEVEL%%"

      BUILD FAILED
      Target "D:\JENKINS-WS\Alpha\workspace" does not exist in the project "TNMS Installers".

          [JENKINS-33727] Invoke Ant - Build failed if parameters contain spaces due to changes in quotes since 1.653

          Hugo Reis created issue -
          Ben Apgar made changes -
          Link New: This issue is related to JENKINS-33712 [ JENKINS-33712 ]
          Ben Apgar made changes -
          Summary Original: Invoke Ant build step does not work since 1.653 New: Invoke Ant - Build failed if parameters contain spaces due to changes in quotes since 1.653
          Ben Apgar made changes -
          Link New: This issue is related to JENKINS-28790 [ JENKINS-28790 ]
          Emilio Escobar made changes -
          Assignee New: Emilio Escobar [ escoem ]
          Daniel Beck made changes -
          Labels New: regression
          Emilio Escobar made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Emilio Escobar made changes -
          Link New: This issue depends on JENKINS-34308 [ JENKINS-34308 ]
          Emilio Escobar made changes -
          Link Original: This issue depends on JENKINS-34308 [ JENKINS-34308 ]
          Ben Apgar made changes -
          Link New: This issue is related to JENKINS-31986 [ JENKINS-31986 ]
          Ben Apgar made changes -
          Summary Original: Invoke Ant - Build failed if parameters contain spaces due to changes in quotes since 1.653 New: Invoke Ant - Build failed if parameters are blank due to changes in quotes since 1.653

            escoem Emilio Escobar
            hugo_reis Hugo Reis
            Votes:
            4 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: