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

Add support for specifying the tag in m2release

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • m2release-plugin
    • None

      Our projects put tags under tags/${project}/${version}. The release plugin doesn't give you a way of specifying the tag on a project by project basis. It would be nice to have a text field to specify the tag and have that passed to the build as -Dtag.

          [JENKINS-7295] Add support for specifying the tag in m2release

          deaddowney added a comment -

          I've attached a patch to offer this functionality.

          deaddowney added a comment - I've attached a patch to offer this functionality.

          jeroen_muis added a comment -

          Here's another patch. Unfortunately I did not see the previous patch, but I guess this patch allows a little bit more as we set the tag by default to the releaseVersion only instead of artifactId-releaseVersion.

          Added 2 options at the configuration of the project to allow tag control & added override options to the release action view.

          Brgds,
          Jeroen Muis

          jeroen_muis added a comment - Here's another patch. Unfortunately I did not see the previous patch, but I guess this patch allows a little bit more as we set the tag by default to the releaseVersion only instead of artifactId-releaseVersion. Added 2 options at the configuration of the project to allow tag control & added override options to the release action view. Brgds, Jeroen Muis

          Code changed in jenkins
          User: James Nord
          Path:
          src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseAction.java
          src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseBuildWrapper.java
          src/main/resources/org/jvnet/hudson/plugins/m2release/M2ReleaseAction/index.jelly
          src/main/webapp/help-actionRelease-specifyCustomScmTag.html
          http://jenkins-ci.org/commit/m2release-plugin/743ee2555468b77ac6683d08956a546e56aa07f2
          Log:
          [FIXED JENKINS-7295]
          [FIXED JENKINS-5171]
          added ability to specify the SCM tag.

          Compare: https://github.com/jenkinsci/m2release-plugin/compare/384c610...743ee25

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: James Nord Path: src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseAction.java src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseBuildWrapper.java src/main/resources/org/jvnet/hudson/plugins/m2release/M2ReleaseAction/index.jelly src/main/webapp/help-actionRelease-specifyCustomScmTag.html http://jenkins-ci.org/commit/m2release-plugin/743ee2555468b77ac6683d08956a546e56aa07f2 Log: [FIXED JENKINS-7295] [FIXED JENKINS-5171] added ability to specify the SCM tag. Compare: https://github.com/jenkinsci/m2release-plugin/compare/384c610...743ee25

          dogfood added a comment -

          Integrated in plugins_m2release #29
          [FIXED JENKINS-7295]

          James Nord :
          Files :

          • src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseAction.java
          • src/main/webapp/help-actionRelease-specifyCustomScmTag.html
          • src/main/resources/org/jvnet/hudson/plugins/m2release/M2ReleaseAction/index.jelly
          • src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseBuildWrapper.java

          dogfood added a comment - Integrated in plugins_m2release #29 [FIXED JENKINS-7295] James Nord : Files : src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseAction.java src/main/webapp/help-actionRelease-specifyCustomScmTag.html src/main/resources/org/jvnet/hudson/plugins/m2release/M2ReleaseAction/index.jelly src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseBuildWrapper.java

          Code changed in jenkins
          User: James Nord
          Path:
          src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseBuildWrapper.java
          http://jenkins-ci.org/commit/m2release-plugin/654e89074d6fa7a23052f82e588db925fe34d3c4
          Log:
          [FIXED JENKINS-7295]
          [FIXED JENKINS-5171]

          Add a space after the tag so the arguments for the tag don't end up including the release goals.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: James Nord Path: src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseBuildWrapper.java http://jenkins-ci.org/commit/m2release-plugin/654e89074d6fa7a23052f82e588db925fe34d3c4 Log: [FIXED JENKINS-7295] [FIXED JENKINS-5171] Add a space after the tag so the arguments for the tag don't end up including the release goals.

          dogfood added a comment -

          Integrated in plugins_m2release #33
          [FIXED JENKINS-7295]

          James Nord :
          Files :

          • src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseBuildWrapper.java

          dogfood added a comment - Integrated in plugins_m2release #33 [FIXED JENKINS-7295] James Nord : Files : src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseBuildWrapper.java

            Unassigned Unassigned
            deaddowney deaddowney
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: