IMPORTANT: JAC is a Public system and anyone on the internet will be able to view the data in the created JAC tickets. Please don’t include Customer or Sensitive data in the JAC ticket.
Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-17709

Quoted system property is passed through with quotes included in Maven task

      Summary

      Running mvn task with goal below, sets the system property with quotes:

      -Dincludes="au.*,au.com.*"

      Running a script task with the following inline commands, sets the system property without quotes:

       /usr/share/maven/bin/mvn --batch-mode -X -Djava.io.tmpdir=/opt/atlassian/bamboo/temp/TEST-CLON-JOB1 clean package -Dincludes="au.*,au.com.*"

      Expected Results

      Consistency between the script task and the Maven task

      Actual Results

      When running maven with -X from Maven task:

      build	29-Jun-2016 15:50:56	[DEBUG] Setting system property [includes]=["au.*,au.com.*"]
      

      When running maven with -X from Script task:

      build	29-Jun-2016 15:51:03	[DEBUG] Setting system property [includes]=[au.*,au.com.*]
      

      Workaround

      Remove quotes from the system property in the Maven task goals.

            Loading...
            IMPORTANT: JAC is a Public system and anyone on the internet will be able to view the data in the created JAC tickets. Please don’t include Customer or Sensitive data in the JAC ticket.
            Uploaded image for project: 'Bamboo Data Center'
            1. Bamboo Data Center
            2. BAM-17709

            Quoted system property is passed through with quotes included in Maven task

                Summary

                Running mvn task with goal below, sets the system property with quotes:

                -Dincludes="au.*,au.com.*"

                Running a script task with the following inline commands, sets the system property without quotes:

                 /usr/share/maven/bin/mvn --batch-mode -X -Djava.io.tmpdir=/opt/atlassian/bamboo/temp/TEST-CLON-JOB1 clean package -Dincludes="au.*,au.com.*"

                Expected Results

                Consistency between the script task and the Maven task

                Actual Results

                When running maven with -X from Maven task:

                build	29-Jun-2016 15:50:56	[DEBUG] Setting system property [includes]=["au.*,au.com.*"]
                

                When running maven with -X from Script task:

                build	29-Jun-2016 15:51:03	[DEBUG] Setting system property [includes]=[au.*,au.com.*]
                

                Workaround

                Remove quotes from the system property in the Maven task goals.

                        Unassigned Unassigned
                        jowen@atlassian.com Jeremy Owen
                        Votes:
                        0 Vote for this issue
                        Watchers:
                        5 Start watching this issue

                          Created:
                          Updated:
                          Resolved:

                            Unassigned Unassigned
                            jowen@atlassian.com Jeremy Owen
                            Affected customers:
                            0 This affects my team
                            Watchers:
                            5 Start watching this issue

                              Created:
                              Updated:
                              Resolved: