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

Passing multiline text parameter to ant broken (windows)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ant-plugin
    • Win XP, Chrome.
      Windows 7, Firefox/IE

      A build configured to accept a Text Parameter and pass it to ant Ant build will fail if the user enters multiple lines in the text parameter field.

      For example, in the following output the parameter 'user.notes' is multiline:

      [workspace] $ cmd.exe /C '""C:\Program Files (x86)\ant\apache-ant-1.8.2\bin\ant.bat" "-Duser.notes=Optional notes

      For the keeping!" -Ddatabase.name=mm4_sit2 "-Ddatabase.fields=messages.

      {transactionreference, meridianmessagetype, queue}

      , meridianerrors.

      {errorkey}

      " -Ddatabase.host=dbhost db-capture && exit %%ERRORLEVEL%%"'
      The syntax of the command is incorrect.
      Build step 'Invoke Ant' marked build as failure
      Finished: FAILURE

            Unassigned Unassigned
            synesso Jem Mawson
            Votes:
            13 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: