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

Configure provided settings.xml at the Maven plugin level, not at the Maven job level

    XMLWordPrintable

Details

    Description

      To use global and user settings.xml provided by the Config File Provider plugin, one must declare both files to be used with every single job. This is a lot of work, hence error prone.

      It would be smarter if one could simply go to "Manage Jenkins > Configure Jenkins > Maven" and declare the provided settings.xml files to be used there.

      Benefit: The jobs do not need to know about any particular settings.xml file. All jobs run with this Maven version will then use that settings.xml files automatically. One could not accidentially forget to configure these files at new jobs.

      Attachments

        Issue Links

          Activity

            bcalmac bcalmac added a comment -

            So what does JENKINS-17723 fix if this problem is still there? It doesn't look like this is a duplicate. As far as I can see there's currently no way to globally specify a settings.xml to be used by all jobs.

            bcalmac bcalmac added a comment - So what does JENKINS-17723 fix if this problem is still there? It doesn't look like this is a duplicate. As far as I can see there's currently no way to globally specify a settings.xml to be used by all jobs.

            bcalmac, I don't think this ticket is exactly a duplicate of the other one because, according to the title, it solves the issue only for new jobs.

            jhack Giacomo Boccardo added a comment - bcalmac , I don't think this ticket is exactly a duplicate of the other one because, according to the title, it solves the issue only for new jobs.
            bondolo Mike Duigou added a comment -

            The maven plugin "Maven Configuration" of settings.xml seems to be entirely ignored by projects and by scripts which try to run mvn executable directly. The project level "Use default maven settings" should respect the plugin level setting.

            bondolo Mike Duigou added a comment - The maven plugin "Maven Configuration" of settings.xml seems to be entirely ignored by projects and by scripts which try to run mvn executable directly. The project level "Use default maven settings" should respect the plugin level setting.
            nilsrenaud Nils Renaud added a comment -

            One year later, Is there any news about this feature (which could be really useful !!) ?

            nilsrenaud Nils Renaud added a comment - One year later, Is there any news about this feature (which could be really useful !!) ?

            no, but PRs are welcome...

            imod Dominik Bartholdi added a comment - no, but PRs are welcome...

            People

              domi Dominik Bartholdi
              mkarg Markus KARG
              Votes:
              9 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated: