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