Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Won't Fix
-
Jenkins 2.32.1 / Config File Provider 2.15.5 / Pipeline Maven Integration Plugin 0.5
Description
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
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Description |
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: {code:java} withMaven( maven: "maven-3.3.9", globalMavenSettingsConfig: "my-maven-global-settings" ) { ... } {code} 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 |
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: {code:java} withMaven( maven: "maven-3.3.9", globalMavenSettingsConfig: "my-maven-global-settings" ) { ... } {code} The build because it cannot find settings.xml As workaround I have to specify config file ID instead: {code:java} withMaven( maven: "maven-3.3.9", globalMavenSettingsConfig: "2bde3e90-eada-4573-9a33-bfeb95135d97" ) { ... } {code} It works |
Assignee | Dominik Bartholdi [ domi ] | Cyrille Le Clerc [ cleclerc ] |
Resolution | Won't Fix [ 2 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |