buildResultUUID is not being set in maven Jazz build
I have a Maven build setup in RTC using the Maven Jazz build definition. On the Maven tab I have
-DbuildResultUUID=${buildResultUUID} as one of the parameters. i am using the maven-antrun-plugin to execute tasks from the Ant task toolkit. The build execution fails with a 'Ant task attribute "buildResultUUID" contains illegal value '${buildResultUUID}". I have tried setting this directly in the pom and get the same result. I have followed all the steps in the Wiki example.
What is strange is I have this working using the Team Concert Jenkins plugin , and in Ant, but not the native JBE definition for Maven. It is clear the value is not being set from the environment. Am I missing something obvious? I am using RTC 5.0.
-DbuildResultUUID=${buildResultUUID} as one of the parameters. i am using the maven-antrun-plugin to execute tasks from the Ant task toolkit. The build execution fails with a 'Ant task attribute "buildResultUUID" contains illegal value '${buildResultUUID}". I have tried setting this directly in the pom and get the same result. I have followed all the steps in the Wiki example.
What is strange is I have this working using the Team Concert Jenkins plugin , and in Ant, but not the native JBE definition for Maven. It is clear the value is not being set from the environment. Am I missing something obvious? I am using RTC 5.0.
2 answers
Hi David, which field do you have the -D in? It should be in the Maven goals field, and before any actual goals.
Try also adding -X, for debug output, to see whether the property assignments show.
OK, placing buildResultUUID before the goals worked. Tat leads me to believe that there is some magic that is not documented. Seems reminiscent of the extra "/' at the end of the Jenkins URL. The maven build tutorial on the wiki says to put these parameters on the Java args line. Looks like the code changed, the documentation is wrong or both.
Why does the order matter??
Why does the order matter??