• Icon: New Feature New Feature
    • Resolution: Not A Defect
    • Icon: Major Major
    • m2release-plugin
    • None

      As part of the maven release process that we run on the command line, we pass in a JVM argument "-DcommitId=JIRA-234". Our Subversion repository has a pre commit hook to make sure we always include the JIRA number or a similar ID so that we can track all the commits.

      If can please add another option similar to the scm comment prefix called commit id that allows the user to pass in the commit id when doing a release through hudson that would help out immensely. Right now have to modify the job and add the jvm argument manually which do not want to do.

          [JENKINS-6885] Add a way to pass in commitId

          James Nord added a comment -

          Can you point top the maven documentation for this field - I fail to see it for the release:prepare mojo.

          James Nord added a comment - Can you point top the maven documentation for this field - I fail to see it for the release:prepare mojo.

          joshjdevl added a comment -

          Sorry, it seems that in our release plugin configuration we have a property called commitId. That is how we are using it from the command line to have a custom prefix.

          Since this maven hudson release plugin supports filling in the scm comment prefix that should be sufficient. I have removed the commitId from our plugin configuration. Using the scm comment prefix provided by the hudson release plugin suits our needs.

          Please close this issue. Thanks.

          joshjdevl added a comment - Sorry, it seems that in our release plugin configuration we have a property called commitId. That is how we are using it from the command line to have a custom prefix. Since this maven hudson release plugin supports filling in the scm comment prefix that should be sufficient. I have removed the commitId from our plugin configuration. Using the scm comment prefix provided by the hudson release plugin suits our needs. Please close this issue. Thanks.

            Unassigned Unassigned
            joshjdevl joshjdevl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: