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

M2ReleaseBuildWrapper configuration broken - no longer has defaultVersioningMode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • m2release-plugin
    • None
    • Jenkins 1.433 Ubuntu 10.04/x86 Java 6.
      m2 release 0.80 - upgraded from 0.71

      When upgrading from m2-release-plugin 0.71 to 0.80 I get an error reading job configuration.

      NonExistentFieldException: No such field org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.defaultVersioningMode

      This seems to date back to commit 136310fface31ac57efd03ff97d9881fd01c4566 on 1/May/2011 where the defaultVersioningMode member was removed from M2ReleaseBuildWrapper.java

      see https://github.com/jenkinsci/m2release-plugin/commit/136310fface31ac57efd03ff97d9881fd01c4566#src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseBuildWrapper.java

      A typical snippet of the configuration from a job configuration is as follows

      <org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper>
        <releaseGoals>-Dresume=false -DignoreSnapshots=false -Dgoals=deploy release:prepare release:perform -Dandroid.device=emulator-${ANDROID_AVD_USER_PORT}</releaseGoals>
        <defaultVersioningMode>auto</defaultVersioningMode>
        <selectCustomScmCommentPrefix>false</selectCustomScmCommentPrefix>
        <selectAppendHudsonUsername>false</selectAppendHudsonUsername>
      </org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper>
      

            Unassigned Unassigned
            oldelvet Richard Mortimer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: