Please enable JavaScript.
Coggle requires JavaScript to display documents.
CC NET Local - Coggle Diagram
CC NET Local
STEPS
Required
Redis
CruiseControl.NET
https://sourceforge.net/projects/ccnet/
MS .Net
npm
VSTS
yarn
Config VSTS
Turn on IIS
[Do it first]
Windows Hosting Bundle
https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-aspnetcore-6.0.26-windows-hosting-bundle-installer
Try to clone repo to local machine.
(some where not source directory to get the token)
CCNet service => input PC user credential
Config CruiseControl.Net
Update port 8080
C:\Program Files (x86)\CruiseControl.NET\server\Ccnet.exe.config
C:\Program Files (x86)\CruiseControl.NET\server\ccservice.exe.config
C:\Program Files (x86)\CruiseControl.NET\webdashboard\Dashboard.config
ccnet.config
Copy from
auto local machine
to
local machine
Go to Service -> Cruise control -> File explorer to get
ccnet.config
Review build command of WIT: .\build.ps1 --target:Web:BuildAll:Parallel --environment=env.t1 --deploy --use-pre-build
(Only need to update environment=env.t1)
Copy automation.local.json
From source (e.g. T1/Auto)
To
Wellbarrier
Wellbarrier-central-validation
Wellbarrier-data-integration
Wellbarrier-background
Update automation.local.json
Review and update all parameters to match your environment
Import Certificates files in both Local Machine/Current User
Update DB connection string
Go to %TEMP% to check cnect.log
Don't clone repository into Source folder, just try some where to get token, if not the CCNet cannot overwrite that folder
General Issues
Unauthorized source repos
Cause: Git repo token is expired
Open source control folder
try to pull code and re-enter credential
Cannot access file in Source directory
Cause: Someone hit the site after trigger deployment
Kill them and Re-deploy
Missed config in xxx.env.config files
Cause: Mistaken while updating env json files
Correct configuration
Source code/application error
Nothing to do
Contact DEV
Commands
Run build in local (not use CCNet)
.\build.ps1 --target:Web:BuildAll:Parallel --environment automation.local --configuration Debug --parallel-bundle --fepool local.wellbarrier.com --db-local true
vsts-npm-auth -config .npmrc -F
Check Logs
D:\wellbarrier\automation\WellbarrierV3\wit\ApplicationLogs