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

override default SCM tag from ${project.artifactid}-${project.version} to something else

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: m2release-plugin
    • Labels:
      None
    • Environment:
      Jenkins ver. 1.599
      Maven Release Plug-in Plug-in 0.14.0
    • Similar Issues:

      Description

      Is there a way to define what the default SCM tags is? Currently it is ${project.artifactid}-${project.version}
      In our project the convention is ${project.version}.
      This mean we need to edit with every release.

      (see attachment)

      Is there a way to change the default of ${project.artifactid}-${project.version} to ${project.version}?
      Setting a properties file would be fine, but including it in Manage Jenkins would be great!

        Attachments

          Activity

          Hide
          ahammar Anders Hammar added a comment -

          What we do is that we use the standard configuration of maven-release-plugin:
          http://maven.apache.org/maven-release/maven-release-plugin/prepare-mojo.html#tagNameFormat

          You then configure this in the pom of the project, or possibly even in your corporate parent pom.

          The Jenkins UI might not reflect the configured value correctly as the default one though (I don't remember), but as long as you keep that box unchecked the value configured for m-release-p will be used.

          Show
          ahammar Anders Hammar added a comment - What we do is that we use the standard configuration of maven-release-plugin: http://maven.apache.org/maven-release/maven-release-plugin/prepare-mojo.html#tagNameFormat You then configure this in the pom of the project, or possibly even in your corporate parent pom. The Jenkins UI might not reflect the configured value correctly as the default one though (I don't remember), but as long as you keep that box unchecked the value configured for m-release-p will be used.

            People

            • Assignee:
              teilo James Nord
              Reporter:
              quartelh Herbert Quartel
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: