-
Suggestion
-
Resolution: Answered
-
None
-
None
-
Maven 2.0.x
SVN
Applying following configuration of a Project
- Pooling on SVN Repository
- Build Goals : clean package deploy release:prepare --batch-mode release:perform
In SVN Repository :
- the build-number.txt is added in svnignore
- The current Project Version is set to 1.0-SNAPSHOT
At the first execution, the Build perform all goals correctly :
- clean and package provide a new SNAPSHOT binary
- deploy deploys the 1.0.0-SNAPSHOT on Maven Repository
- release:prepare --batch-mode defines the release informations in release.properties on build Dir.
- release:perform releases the project by :
- Updating version from 1.0.0-SNAPSHOT to 1.0.0
- Releasing the 1.0.0 to TagBase URL
- Updating version from 1.0.0 t o*1.0.1-SNAPSHOT* in the trunk
- Extract of release 1.0 in Build.Dir.\target\checkout
- deploy and site-deploy execution, providing a new released binary
After execution, a new release is tagged on SVN and the SVN Trunk is ready for the next SNAPSHOT release.
The Maven repostory is updated with SNAPSHOT and RELEASE repository.
But sadely, in the next pooling phase, Bamboo reexecutes the Build, because, there are two new changes :
- [maven-release-plugin] prepare release maven-checkstyle-plugin-config-1.0.0
- /sfri/trunk/maven-checkstyle-plugin-config/pom.xml (version 7661)
- [maven-release-plugin] prepare for next development iteration
- /sfri/trunk/maven-checkstyle-plugin-config/pom.xml (version 7663)
Then, each Build make some changes, then after each SVN pool, the Build is restarted.
What is the best way to manage release from Bamboo whitout having more than one plan per SVN URLs ?
The only short term solution, should be to launch a scm:update goal after the release.
- Build Goals Tested : clean package deploy release:prepare --batch-mode release:perform scm:update
- Build Goals not yet tested : clean package deploy release:prepare --batch-mode scm:update release:perform
What may be the best practice ?
Rgds
[BAM-1917] Usage of Maven2 Goals release:prepare and release:perform
Workflow | Original: JAC Suggestion Workflow [ 3375411 ] | New: JAC Suggestion Workflow 3 [ 3608880 ] |
Status | Original: RESOLVED [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: Bamboo Workflow 2016 v1 - Restricted [ 1437206 ] | New: JAC Suggestion Workflow [ 3375411 ] |
Assignee | Original: Adrian Hempel [Atlassian] [ ahempel ] | |
Issue Type | Original: Task [ 3 ] | New: Suggestion [ 10000 ] |
Workflow | Original: Bamboo Workflow 2016 v1 [ 1421735 ] | New: Bamboo Workflow 2016 v1 - Restricted [ 1437206 ] |
Workflow | Original: Bamboo Workflow 2014 v2 [ 609896 ] | New: Bamboo Workflow 2016 v1 [ 1421735 ] |
Backlog Order (Obsolete) | Original: 25060000000 | |
Issue Type | Original: Support Request [ 5 ] | New: Task [ 3 ] |
Workflow | Original: Bamboo Workflow 2014 [ 604351 ] | New: Bamboo Workflow 2014 v2 [ 609896 ] |
Workflow | Original: Bamboo Workflow 2010 [ 204274 ] | New: Bamboo Workflow 2014 [ 604351 ] |
Workflow | Original: reviewflow [ 166616 ] | New: Bamboo Workflow 2010 [ 204274 ] |
Workflow | Original: jira [ 117210 ] | New: reviewflow [ 166616 ] |
Resolution | New: Answered [ 9 ] | |
Status | Original: In Progress [ 3 ] | New: Resolved [ 5 ] |