• 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

          Andrew Bayer created issue -

          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
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          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.
          Andrew Bayer made changes -
          Attachment New: hudson.maven.MavenModuleSet.xml [ 18971 ]
          Andrew Bayer made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Jenkins IRC Bot made changes -
          Component/s New: maven-plugin [ 16033 ]
          Component/s Original: maven2 [ 15487 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 135226 ] New: JNJira + In-Review [ 203342 ]

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

              Created:
              Updated:
              Resolved: