Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-8038

Add support for running release:rollback if a release fails

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • m2release-plugin
    • None

      It would be useful to automatically rollback a release if the release fails with the release:rollback goals. This would probably be best as an option in the project configuration that is default to false (do not perform a rollback).

      In addition, provide a button that performs release:rollback.

          [JENKINS-8038] Add support for running release:rollback if a release fails

          I noticed that adding rollback before clean (release:rollback clean verify) doesn't work because failing to rollback fails the build. This would have been otherwise a great workaround for my need.

          tuomas_kiviaho added a comment - I noticed that adding rollback before clean (release:rollback clean verify) doesn't work because failing to rollback fails the build. This would have been otherwise a great workaround for my need.

          Alex Rovner added a comment -

          I am trying to make a patch. Might need some help if anyone is able to help me out.

          Alex Rovner added a comment - I am trying to make a patch. Might need some help if anyone is able to help me out.

          Jason Chaffee added a comment -

          Another option is to simply add "Schedule Rollback" and "Schedule Clean" buttons next to the "Schedule Release" button, but I do like the idea of automatically performing a rollback if there is a failure.

          Jason Chaffee added a comment - Another option is to simply add "Schedule Rollback" and "Schedule Clean" buttons next to the "Schedule Release" button, but I do like the idea of automatically performing a rollback if there is a failure.

          john davis added a comment -

          A button to perform a release:rollback release:clean clean would be helpful especially if the release:prepare failed.

          john davis added a comment - A button to perform a release:rollback release:clean clean would be helpful especially if the release:prepare failed.

            Unassigned Unassigned
            ashlux ashlux
            Votes:
            17 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated: