Uploaded image for project: 'Maven Release Plugin'
  1. Maven Release Plugin
  2. MRELEASE-736

Add dryRun flag to release:perform

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.2
    • 2.3
    • perform
    • None
    • mvn 3.0.3

    Description

      Please consider to add the "dryRun" flag from the "release:prepare" to the "release:perform" goal too.

      I have the following use case:
      Jenkins/Hudson has a plugin called m2release which basically is there to help the user to trigger a maven release. This plugin allows to define a commandline which should be executed in case of a release build. The common configuration of this arguments are:

      "-Dresume=false release:prepare release:perform"

      the next version of the plugin would like to add a "dryRun" option when triggering a build and in this case it would just add "-DdryRun=true" to the configured arguments and thats it.
      Unfortunately this will not work, as the "release:perform" still gets executed and will fail.
      Of course I could also change the Jenkins/Hudson plugin, but this would mean I have to remove "release:perform" from the passed argument, which is relay ugly.

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            domi Dominik Richner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: