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

This issue is archived. You can view it, but you can't modify it. Learn more

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
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: