• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None

      The global MAVEN_OPTS option isn't actually saving anything - turns out the underlying problem here is that I needed to add TopLevelItemDescriptor to the list of descriptors that get configure called against them when the global configuration is saved, and I needed to tweak the global.jelly for MavenModuleSet to use ${descriptor.globalMavenOpts}, not ${it.globalMavenOpts}.

          [JENKINS-5142] Global MAVEN_OPTS setting not registering

          Code changed in hudson
          User: : abayer
          Path:
          trunk/hudson/main/core/src/main/java/hudson/model/Hudson.java
          trunk/hudson/main/maven-plugin/src/main/resources/hudson/maven/MavenModuleSet/global.jelly
          trunk/www/changelog.html
          http://fisheye4.cenqua.com/changelog/hudson/?cs=24844
          Log:
          [FIXED JENKINS-5142] TopLevelItemDescriptors now have configure called against them

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : abayer Path: trunk/hudson/main/core/src/main/java/hudson/model/Hudson.java trunk/hudson/main/maven-plugin/src/main/resources/hudson/maven/MavenModuleSet/global.jelly trunk/www/changelog.html http://fisheye4.cenqua.com/changelog/hudson/?cs=24844 Log: [FIXED JENKINS-5142] TopLevelItemDescriptors now have configure called against them

          Andrew Bayer added a comment -

          Workaround until 1.339 - save the attached file to your Hudson root directory, and edit the value of the <globalMavenOpts> tag to what you need, and then go to Manage Hudson->Reload Configuration from Disk, and you'll get those global MAVEN_OPTS in all your Maven projects.

          Andrew Bayer added a comment - Workaround until 1.339 - save the attached file to your Hudson root directory, and edit the value of the <globalMavenOpts> tag to what you need, and then go to Manage Hudson->Reload Configuration from Disk, and you'll get those global MAVEN_OPTS in all your Maven projects.

            abayer Andrew Bayer
            abayer Andrew Bayer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: