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