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

Attempting to specify a maven settings.xml in a freestyle job is ingored upon saving

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • maven-plugin

      Something broke with respect to specifying a maven settings.xml file in a job sometime after 1.510. I am seeing the issue in 1.515. Any attempt to fill in the maven settings file field is ignored / overwritten with "use maven default" after hitting the save button. I've confirmed it in the jobs config.xml file. Reverting to 1.510 saves the change. At first I tried just reverting the maven plugin version from 1.515 to 1.510 and restarting jenkins but that wasn't enough to fix it. I had to revert war files back to 1.510. Full disclosure I haven't tried any builds in between because at the moment I only have a production server.

      The steps are fairly easy to reproduce:

      1. Create a freestyle software project.
      2. Make one of the build steps "Invoke Top level Maven target"
      3. Set maven version to "maven"
      4. Goals: I had typed "clean install"
      5. Under advanced check "Use private maven repository"
      6. -here's what's broken- Settings file set "Settings file in file system"
      7.File Path: settings.xml
      8 Global Settings file: "Use Default Maven global settings"
      9. Click save. Save will appear to complete successfully but
      if you look at the xml file itself or go back to the configure page the settings file setting is set back to "use default maven settings".

          [JENKINS-18017] Attempting to specify a maven settings.xml in a freestyle job is ingored upon saving

          There are no comments yet on this issue.

            Unassigned Unassigned
            damong Damon G
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: