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

maven builder errors if multiple goals are specified via a global variable.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Medium
    • 2.1.5
    • None
    • Tasks
    • None

    Description

      define a global variable || TESTGOAL | clean test |
      use in builder configuration to specify maven builder goals || Goal | ${bamboo.TESTGOAL} |

      bamboo substitutes correctly

      
      

      ... running command line: /usr/share/maven/bin/mvn ${bamboo.CLEANTESTGOAL} -e
      ... in : /Users/ukuhnhardt/src/atlassian/bamboo/trunk/home/xml-data/build-dir/MAVEN-MULTIGLOB
      ... using java: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
      ... using environment variables:
      28-Nov-2008 11:13:45
      Substituting variable: ${bamboo.CLEANTESTGOAL} with clean test
      28-Nov-2008 11:15:10 + Error stacktraces are turned on.
      28-Nov-2008 11:15:10 [INFO] Scanning for projects...
      28-Nov-2008 11:15:10 [INFO] ------------------------------------------------------------------------
      28-Nov-2008 11:15:10 [ERROR] BUILD FAILURE
      28-Nov-2008 11:15:10 [INFO] ------------------------------------------------------------------------
      28-Nov-2008 11:15:10 [INFO] Invalid task 'clean test': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal

      {noformant}

      but the goals are not separated in the commandLine array:

      [0] /usr/share/maven
      [1] clean test  // <<<<< this is the gloable variable
      [2] -e
      

      as opposed to

      [0] /usr/share/maven
      [1] clean 
      [2] test 
      [3] -e
      

      Attachments

        Issue Links

          Activity

            People

              kbrazulewicz Krystian Brazulewicz
              ukuhnhardt Ulrich Kuhnhardt [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: