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.
3 answers
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
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
Thanks for the reply.
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.