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

Maven release plugin in Jazz

In our Jazz instance we have a precondition to associate a work item to a change set while delivering source code. 
We have setup a build which uses maven release plugin and it is failing while delivering the source code.

Error:
'Deliver' failed. Preconditions have not been met: In order to meet the work item approval requirements the change set must be associated with a work item.

Maven Command used in build definition:
mvn -B -Dresume=false -DworkingDirectory=/directory release:prepare release:perform -Dsettings.security=./pathOfSecurityFile

Build log shows that "scm checkin" successful. After that even created a change set and assigned an ID (number) to it but "scm deliver" failed because no work item was associated with it.

As per Jazz articles, command to associate a change set to a work item in SCM is

lscm changeset associate <Change Set Number> <Work Item Number>

We are not sure about the change set number until build creates one and we do not know how to pass work item number in maven command. We want to know what command or configuration we should use to automated this process.

If anyone has already used maven release plugin with Jazz and have encountered similar error then let us know.

0 votes



3 answers

Permanent link
What information does LSCM checkin provide? I assume the change set number. See https://www-01.ibm.com/support/knowledgecenter/SSYMRC_5.0.1/com.ibm.team.scm.doc/topics/checkin.html?lang=en

So if you get that number and know your work item ID, you can associate that before you deliver.

0 votes


Permanent link
I think you are stuck.
http://maven.apache.org/scm/jazz.html

the maven jazz scm provider doesn't provide an interface for workitem, even tho the scm checkin command does with the /W parameter.

you could download the maven jazz provider and check..
you might be forced to use addition steps to do this. using some script

0 votes


Permanent link
Thanks for the reply.

 @Ralph,

Operations like scm checkin, scm create and scm deliver are done by maven release plugin. As change set number is generated automatically by maven release plugin while build execution is in progress. We cannot issue another command to associate it as a parameter to deliver.

@Sam,

I will get more information on Jazz provider and will attempt to do this.

0 votes

Comments

The JBE runs in the context of a technical user. You could configure RTC that this user has a special role and that the role does not have to provide a work item to deliver.

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
× 12,030

Question asked: Sep 24 '14, 5:30 p.m.

Question was seen: 4,149 times

Last updated: Sep 29 '14, 3:17 a.m.

Confirmation Cancel Confirm