Use a custom global setting.xml file from job workspace. Such a file is checked out from SCM as part of the job or a well known location.