Pipeline Maven Plugin : globalMavenSettingsConfig argument doesn't get configuration file name but ID

XMLWordPrintable

      I added a Global Maven setttings.xml in configuration file provider and named it : my-maven-global-settings.
      When using Maven Pipeline withMaven clause, it ignores the name provided as globalMavenSettingsConfig argument:

      withMaven(
           maven: "maven-3.3.9",
           globalMavenSettingsConfig: "my-maven-global-settings"
      ) {
      ...
      }
      

      The build because it cannot find settings.xml

      As workaround I have to specify config file ID instead:

      withMaven(
           maven: "maven-3.3.9",
           globalMavenSettingsConfig: "2bde3e90-eada-4573-9a33-bfeb95135d97"
      ) {
      ...
      }
      

      It works

            Assignee:
            Cyrille Le Clerc
            Reporter:
            Laurent TOURREAU
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: