Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-12537

Providing additional parameters via Target field of Bamboo Ant task fails if there are spaces in the parameter value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 4.3.2
    • Builds

      Having this in the Target field:

      hi -Dperson="Armen" test -Dgreeting="Good to see you"
      

      Bamboo shows the following logs:

      Beginning to execute external process for build 'Project-1 - Plan-2 - Default Job'
      ... running command line:
      /Users/akhachatryan/dev/apache-ant-1.8.2/bin/ant
      -Djava.io.tmpdir=/var/folders/gl/0lz__sg17fn4z5gcl_lsb66m0000gp/T/PROJ1-PLAN2-JOB1
      -f
      build.xml
      hi
      -Dperson="Armen"
      test
      -Dgreeting="Good to see you"
      ... in: /Users/akhachatryan/Atlassian/BambooHome4.3.2/xml-data/build-dir/PROJ1-PLAN2-JOB1
      ... using extra environment variables: 
      ....
      

      However, it fails not being able to parse the space that comes after 'Good':

      build	12-Dec-2012 10:56:56	hi:
      build	12-Dec-2012 10:56:56	     [echo] Hello Armen
      build	12-Dec-2012 10:56:56	     [echo] Good
      build	12-Dec-2012 10:56:56	
      build	12-Dec-2012 10:56:56	test:
      build	12-Dec-2012 10:56:56	     [echo] ${env.deploy.env} Hello,  World. This is a test for project Project-1 PRJ-2
      build	12-Dec-2012 10:56:56	     [echo] ${env.deploy.env}
      build	12-Dec-2012 10:56:56	     [echo] ${env.other}
      build	12-Dec-2012 10:56:56	     [echo] bambooBuildNumber
      error	12-Dec-2012 10:56:56	
      error	12-Dec-2012 10:56:56	BUILD FAILED
      error	12-Dec-2012 10:56:56	Target "to" does not exist in the project "null". 
      

              Unassigned Unassigned
              akhachatryan ArmenA
              Votes:
              5 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: