This post is used for my workshop at the company. However, it might be an initiative of your own approach for automating Sitecore deployments with Teamcity. (Note: the summary is here)
Setup Prerequisites
- Complete Part 1
What are we gonna do in Part 2?
We will fulfill the value of all the configuration parameters so that the automating deployment will be able to run successfully.
- log into TeamCity
- create the configuration parameters:
- Administration -> Projects -> Vh Local -> CA – CD1 – CD2
- left navigation: select Parameters -> Add new parameter
- add configuration parameter vh.AssemblyVersion
- Name: vh.AssemblyVersion
- Value: 1.1.0
- repeat #2 to add configuration parameter vh.buildConfiguration
- Name: vh.buildConfiguration
- Value: Release
- repeat #2 to add configuration parameter vh.defaultBranch
- Name: vh.defaultBranch
- Value: Release-1.5.3
- repeat #2 to add configuration parameter vh.deployIisAppPath_CA
- Name: vh.deployIisAppPath_CA
- Value: viethoang.ca.local
- repeat #2 to add configuration parameter vh.deployIisAppPath_CD1
- Name: vh.deployIisAppPath_CD1
- Value: viethoang.cd1.local
- repeat #2 to add configuration parameter vh.vh.deployIisAppPath_CD2
- Name: vh.deployIisAppPath_CD2
- Value: viethoang.cd2.local
- repeat #2 to add configuration parameter vh.deployPassword
- Name: vh.deployPassword
- Value:
- repeat #2 to add configuration parameter vh.deployPublishMethod
- Name: vh.deployPublishMethod
- Value: InProc
- repeat #2 to add configuration parameter vh.deployServiceUrl_CA
- Name: vh.deployServiceUrl_CA
- Value: http://viethoang.ca.local
- repeat #2 to add configuration parameter vh.deployServiceUrl_CD1
- Name: vh.deployServiceUrl_CD1
- Value: http://viethoang.cd1.local
- repeat #2 to add configuration parameter vh.deployServiceUrl_CD2
- Name: vh.deployServiceUrl_CD2
- Value: http://viethoang.cd2.local
- repeat #2 to add configuration parameter vh.deployUserName
- Name: vh.deployUserName
- Value:
- repeat #2 to add configuration parameter vh.errorOnFail
- Name: vh.errorOnFail
- Value: true
- repeat #2 to add configuration parameter vh.instanceRoot_CA
- Name: vh.instanceRoot_CA
- Value: the full path parent folder of CA website folder
- Note: backslashes are escaped
- Ex: “F:\\Sitecore Training\\viethoang.ca.local”
- repeat #2 to add configuration parameter vh.instanceRoot_CD1
- Name: vh.instanceRoot_CD1
- Value: the full path parent folder of CD1 website folder
- Note: backslashes are escaped
- Ex: “F:\\Sitecore Training\\viethoang.cd1.local”
- repeat #2 to add configuration parameter vh.instanceRoot_CD2
- Name: vh.instanceRoot_CD2
- Value: the full path parent folder of CD2 website folder
- Note: backslashes are escaped
- Ex: “F:\\Sitecore Training\\viethoang.cd2.local”
- repeat #2 to add configuration parameter vh.LastSuccessfulBuildDateTimeFilePath
- Name: vh.LastSuccessfulBuildDateTimeFilePath
- Value: .\LastSuccessfulBuildDateTime.txt
- repeat #2 to add configuration parameter vh.minDateTimeForCheckingProjectUpdate
- Name: vh.minDateTimeForCheckingProjectUpdate
- Value: 1/1/2016 1:32:56 PM
- repeat #2 to add configuration parameter vh.solutionFile
- Name: vh.solutionFile
- Value: VietHoang.Sitecore.sln
- repeat #2 to add configuration parameter vh.unicornFolder
- Name: vh.unicornFolder
- Value: the full path of an available folder which will stores *.yml files
- Note: it should be short such as “D:\unicorn_files” in order to avoid “Windows File Paths Longer Than 255 Characters” issue in the very first run of Unicorn Sync
- finally we’ve just done for the configuration parameters
What’s next?
Just Run Build Vh Local :: CA – CD1 – CD2. Hopefully, you will have no any issues and when the build is done, you would see something like this:
How to verify the automating Sitecore deployments at your machine
Open a browser, navigate to:
Hopefully, you would see something like this:
Got issues?
Please send your issues (with screenshots if possible) to viet.hoang.sitecore@gmail.com so that I have a chance to understand your problem and be able to suggest the solution.
Happy Sitecore coding!
One thought on “Workshop – Automating Sitecore deployments with TeamCity at your machine (Part 2)”