Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes



2 answers

Permanent link
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.

0 votes

Comments

Right now I have it in the Java Args field as the Maven build tutorial specifies.  I originally had it in the Maven goals line but after clean install and that did not work either.  I will try it before the goals and let you know.


David


Permanent link
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??

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 562
× 76
× 45

Question asked: Sep 26 '14, 6:22 p.m.

Question was seen: 4,973 times

Last updated: Sep 26 '14, 11:09 p.m.

Confirmation Cancel Confirm