Specify a separate location for settings.xml in Jenkins
Actually -s flag works. We use it maven jobs.
Under Build section add Invoke top level Maven targets and set Goals to [your goals] -s [path/to/settings.xml]
(e.g. clean deploy -s /some/path/settings.xml
)
I found an easy way to do this..
Go to the 'Build' Section of the job and click "Advanced". There is a 'Settings File' option there. Specify the location your 'settings.xml' file.