Where I work, we have a C# Console EXE that downloads the scripts from each environment (SANDBOX, INT, QA, PROD) to the build server, applies them to the build server...
Another option (for adding a sproc to the master database) would be to add a separate schema of your own to the master database and place the stored procedure there....