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
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