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