Ok I am a step further now and have it running, and I think I know what the 
problem is.
First of all, I confirm that "Use default maven global settings" is working 
very well and it effectively leads to using the configured global 
settings.xml provided by the Config File Provider plugin.
Also I confirm that the option "provided settings.xml" is working well and 
it effectievely leads to using the configured settings.xml provided by the 
Config File Provider plugin -- but that one has to be told in each and 
every Maven job description! :-(
What not work is "Use default maven settings". It leads to the fact that 
Jenkins still is using a "vanilly" Maven config instead of the settings.xml 
provided by the Config File Provider plugin. And it looks like this is a 
known "limitation" (I would say: "bug") of that plugin.

Am Donnerstag, 6. März 2014 09:26:12 UTC+1 schrieb Christian Willman:
>
> Depends. Are you using a MavenBuild or a FreestyleBuild? The Config File 
> Provider plugin will hook into a MavenBuild, but for a FreestyleBuild 
> (using the "Invoke Maven Top-Level Targets" build step), you will need to 
> enable the "Provide configuration files" Build Environment task and then 
> modify the Maven command to include '-s ${SETTINGS_PATH}'.
>
> If you are using this as a mechanism to push out settings.xml changes then 
> it might be worthwhile to just provision out VMs using Puppet or Chef using 
> your desired Maven configuration.
>
> On Wednesday, March 5, 2014 10:21:18 AM UTC-5, [email protected] wrote:
>>
>> I have configured the Config File plugin to provide a custom settings.xml.
>> But it seems the Jenkins slave is not using it.
>> How to tell Jenkins that the Maven installation it automatically pushes 
>> on the slave shall use that custom settings.xml file?
>> I thought Config File plugin would automatically do that "under the hood" 
>> (as it knows it is a Maven config file) but in fact it seems it does not.
>> Any help appreciated! :-)
>> -Markus
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to