You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by David Jencks <da...@yahoo.com.INVALID> on 2014/09/10 18:05:08 UTC

Re: [jira] (SCM-775) Request for new optional parameter RTC (workItem) with release:prepare to associate workitem with changesets got created during build process

Sorry for the reply on list, my codehaus jira credentials seem to have gotten messed up….

I would expect the best normal workflow would be to have the release plugin create the work item, then attach the change sets to it.  I have some evidence that it is possible for external programs to do stuff like this, but I have no idea how.

david jencks

On Sep 10, 2014, at 8:51 AM, "AShit Shah (JIRA)" <ji...@codehaus.org> wrote:

> 
>    [ https://jira.codehaus.org/browse/SCM-775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=352607#comment-352607 ] 
> 
> AShit Shah commented on SCM-775:
> --------------------------------
> 
> Both options are fine. 
> 
> I think ANT have it via build.xml. I personally would prefer to have it via a -D option at command line and not hard-coded in pom.xml. 
> 
> I was thinking of creating one release build WI for every agile sprint. Not sue if this is right approach though.
> 
>> Request for new optional parameter RTC (workItem) with release:prepare to associate workitem with changesets got created during build process
>> ---------------------------------------------------------------------------------------------------------------------------------------------
>> 
>>                Key: SCM-775
>>                URL: https://jira.codehaus.org/browse/SCM-775
>>            Project: Maven SCM
>>         Issue Type: Improvement
>>         Components: maven-scm-provider-jazz
>>   Affects Versions: 1.9.1
>>           Reporter: AShit Shah
>> 
>> Maven {{release:prepare}} command is failing with below error while delivering updated pom.xml to the stream due to Preconditions configured in RTC to have comments and associated work item with every delivery. 
>> [ERROR] Name: Deliver
>> [ERROR] Participant Reports:
>> [ERROR] Name: Require Work items and Comments
>> [ERROR] A work item must be associated with the change set.`
>> [ERROR] At least one of the associated work items must specify that the work is planned for the current iteration.
>> [ERROR] At least one of the associated work items must be assigned to you.
>> [ERROR] Problem running 'deliver':
>> [ERROR] 'Deliver' failed. Preconditions have not been met: A work item must be associated with the change set.
>> [ERROR] -> [Help 1]
>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5:prepare (default-cli) on project junit-ext: Unable to commit files
>> Provider message:
>> Error code for Jazz SCM deliver command - 17
>> I can not find any optional parameters on http://maven.apache.org/maven-release/maven-release-plugin/prepare-mojo.html for release:prepare command which I can use and pass the RTC workitem number on command line.
>> Suggestion:
>> It will be great if you can provide optional parameters like "workItem" which I can use and pass RTC workitem number with release:prepare at command line.
>> Example: mvn -PmyProfile release:prepare -DworkItem=123456
>> So build process should associate change sets created by release:prepare with work item 123456 and deliver change sets to the stream.
>> As of now I have to use "-DpushChanges=false" parameter to block delivery process and I have to manually find the change sets, associate them with work item and deliver them before I run release:perform.
>> Thanks.
> 
> 
> 
> --
> This message was sent by Atlassian JIRA
> (v6.1.6#6162)


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [jira] (SCM-775) Request for new optional parameter RTC (workItem) with release:prepare to associate workitem with changesets got created during build process

Posted by Chris Graham <ch...@gmail.com>.
Ideally yes, it would be wonderful to be able to create a WI as a part if the release.

The problem Jazz/RTC at least is that there is no command line tool to manipulate WI's. There is a feature request to do so, but it has not been started.

That issue aside, there is also the case where the WI needs to be created beforehand. This is also the easiest case to solve.

I'm still very interested to hear from those who have worked with similar systems to see how they do/want to do it.

-Chris

Sent from my iPhone

On 11/09/2014, at 2:05 AM, David Jencks <da...@yahoo.com.INVALID> wrote:

> Sorry for the reply on list, my codehaus jira credentials seem to have gotten messed up….
> 
> I would expect the best normal workflow would be to have the release plugin create the work item, then attach the change sets to it.  I have some evidence that it is possible for external programs to do stuff like this, but I have no idea how.
> 
> david jencks
> 
> On Sep 10, 2014, at 8:51 AM, "AShit Shah (JIRA)" <ji...@codehaus.org> wrote:
> 
>> 
>>   [ https://jira.codehaus.org/browse/SCM-775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=352607#comment-352607 ] 
>> 
>> AShit Shah commented on SCM-775:
>> --------------------------------
>> 
>> Both options are fine. 
>> 
>> I think ANT have it via build.xml. I personally would prefer to have it via a -D option at command line and not hard-coded in pom.xml. 
>> 
>> I was thinking of creating one release build WI for every agile sprint. Not sue if this is right approach though.
>> 
>>> Request for new optional parameter RTC (workItem) with release:prepare to associate workitem with changesets got created during build process
>>> ---------------------------------------------------------------------------------------------------------------------------------------------
>>> 
>>>               Key: SCM-775
>>>               URL: https://jira.codehaus.org/browse/SCM-775
>>>           Project: Maven SCM
>>>        Issue Type: Improvement
>>>        Components: maven-scm-provider-jazz
>>>  Affects Versions: 1.9.1
>>>          Reporter: AShit Shah
>>> 
>>> Maven {{release:prepare}} command is failing with below error while delivering updated pom.xml to the stream due to Preconditions configured in RTC to have comments and associated work item with every delivery. 
>>> [ERROR] Name: Deliver
>>> [ERROR] Participant Reports:
>>> [ERROR] Name: Require Work items and Comments
>>> [ERROR] A work item must be associated with the change set.`
>>> [ERROR] At least one of the associated work items must specify that the work is planned for the current iteration.
>>> [ERROR] At least one of the associated work items must be assigned to you.
>>> [ERROR] Problem running 'deliver':
>>> [ERROR] 'Deliver' failed. Preconditions have not been met: A work item must be associated with the change set.
>>> [ERROR] -> [Help 1]
>>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5:prepare (default-cli) on project junit-ext: Unable to commit files
>>> Provider message:
>>> Error code for Jazz SCM deliver command - 17
>>> I can not find any optional parameters on http://maven.apache.org/maven-release/maven-release-plugin/prepare-mojo.html for release:prepare command which I can use and pass the RTC workitem number on command line.
>>> Suggestion:
>>> It will be great if you can provide optional parameters like "workItem" which I can use and pass RTC workitem number with release:prepare at command line.
>>> Example: mvn -PmyProfile release:prepare -DworkItem=123456
>>> So build process should associate change sets created by release:prepare with work item 123456 and deliver change sets to the stream.
>>> As of now I have to use "-DpushChanges=false" parameter to block delivery process and I have to manually find the change sets, associate them with work item and deliver them before I run release:perform.
>>> Thanks.
>> 
>> 
>> 
>> --
>> This message was sent by Atlassian JIRA
>> (v6.1.6#6162)
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org