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

Add support for specifying the tag in m2release

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: m2release-plugin
    • Labels:
      None
    • Similar Issues:
      Show 5 results

      Description

      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.

        Attachments

          Activity

          Hide
          deaddowney deaddowney added a comment -

          I've attached a patch to offer this functionality.

          Show
          deaddowney deaddowney added a comment - I've attached a patch to offer this functionality.
          Hide
          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

          Show
          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
          Hide
          scm_issue_link 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

          Show
          scm_issue_link 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
          Hide
          dogfood 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
          Show
          dogfood 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
          Hide
          scm_issue_link 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.

          Show
          scm_issue_link 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.
          Hide
          dogfood 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
          Show
          dogfood 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

            People

            • Assignee:
              teilo James Nord
              Reporter:
              deaddowney deaddowney
            • Votes:
              5 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: