-
Notifications
You must be signed in to change notification settings - Fork 43
TeamCityIntegration
ferventcoder edited this page Jun 9, 2011
·
4 revisions
This example assumes the following:
- You package your code up into a code_drop folder
- There is a subdirectory of that folder named deployment
- The deployment folder has deployment batch files in it
- DropkicK executables are in a subdirectory of deployment named dk.
Set the following:
- Artifacts path: code_drop/deployment/dk/*.log
Create a command line step:
- Working directory: code_drop/deployment
- Run: executable with parameters
- Command executable: code_drop/deployment/dk/dk.exe
- Command parameters: execute /environment:%DeployToEnvironment% /roles:Db,Web,Host --silent
Add a dependency to your automated build (make sure that build has a zipped up artifact of your application output).
Create an artifact dependency:
- Depend on: Your application build project
- Get artifacts from: Last finished build with specified tag
- Build tag: %DeployToEnvironment%
- Artifacts paths: nameofzipfile.zip!** ( !** will unpack it automatically) - example MyApp*.zip!**
- Destination path: code_drop/
- Check the box next to clean directory before downloading artifacts
Add a new configuration parameter:
- Name: DeployToEnvironment
- Type: Configuration parameter
- Value: the environment you want to deploy (i.e. DEV)