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

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

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • m2release-plugin
    • None
    • Jenkins ver. 1.599
      Maven Release Plug-in Plug-in 0.14.0

      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!

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

          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.

          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.

            Unassigned Unassigned
            quartelh Herbert Quartel
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: