Details
-
Improvement
-
Status: Resolved (View Workflow)
-
Critical
-
Resolution: Duplicate
-
Java 1.7
Description
The current release plugin performs a build twice when a release is done. It does one build using the default build goal and then it builds again using the release goal. I am trying to override the default build goal and just perform the release goal at time of release. To do so we need to have the release goal input from the user so have added one more field in the configuration environment. Kindly see the attached image.
Thought this option is available in pre release menu but still it does not override the default build and performs two builds at time of release which take more time.
Attachments
Issue Links
- duplicates
-
JENKINS-27875 Add ability to skip the default build step triggered by downstream build step such as Jenkins release-plugin
-
- Open
-
- is related to
-
JENKINS-11120 Add a possiblity to skip/override the normal build in case of a release.
-
- Resolved
-
@Hannes, the environment class in Jenkins core can have one more method with a return type boolean which by default always returns false. The method can be override in the release wrapper class of the release plugin. When the release wrapper class of the release plugin returns a new environment. We override the boolean method to return true if the default build needs to be override. I hope this give you some details.
The option to override the default build can be provided in the UI too.