- Create CEF branches (DEV, STAGING, PRODUCTION)
- Create branch policies
DEV
- require minimum number of reviewers (1)
- allow users to approve their own changes
- reset code reviewer notes to new changes
- check for comment resolution required
- enforce merge strategy
- no fast forward merge
- add build policy
- automatic, required, immediately when
- save changes
STAGING
- require minimum number of reviewers (2)
PRODUCTION
- require minimum number of reviewers (2)
- do not allow users to approve their own changes
- Create website branches (DEV, STAGING, PRODUCTION)
- create branch policies
- same as CEF policies, but no build policy
1 - Navigate to "Build and Release", "Task Groups" for VERA (example)
2 - Right-click on "Create CEF's DNN Artifact (Vera-MS) and click Export
3 - Click "Import" of CPB;s "Build and Release", "Task Groups" page
4 - Rename "...VERA-MS" to "CPB"
- Duplicate steps 1-4 for "create CEF's DNN site"
- Click Builds, create empty build definition
- Duplicate settings from VERA build
- Click "Add Task" button on "Phase 1" bar
- Searh for "Create" in search bar for "Create CEF's DNN..."
- Click Add
- Click Task Group,and fill the artifact and skin fields (don't change display name)
- Click Triggers
- Enable continuous integration
- Batch changes while a build is in progress
- Click options
- Build job timeout "0"
- Create Work Item on Failure "Enabled"
- Assign requestor
- Click Retention
- Minimum to keep "2"
- Click "Save & Queue", click Save
- Click "Releases", click "+" --> click "Create Release Definition" --> Click "Empty Process"
- Set Environment to "DFO"
- Click "Add Artifact", Select "Source", Set Source Alias, Latest Version
- Click "Add"
- Click Lightening Bolt on Artifact
- Check "Enable Continuous Deployment"
- Select Development Branch for Build Branch
- Click "Lightening Bolt" on Environment (Pre-deployment conditions)
- Enable Artifact Filter
- Add filter
- choose development branch
- Click "Deployment Queue Settings"
- Set "Deploy latest and cancel the others"
- Click "Variables", click "Manage Variable Groups"
- Click "+ Variable Group"
- Nme it "Release Account Data"
- Under "Variables" click "+Add"
- Name it "account pw"
- Add password from PassPack (Corp/Release/Manager)
- Click Save
- Click Variables, click "Link Variable Group", Select "Release Account Data"
- Click Options , Change Release name format to "Release-CPB-DEV-DFO-DNN-$(rev:r)"
- Click Save
- Click Tasks, Agent Phase, select deployment environment (DFO)
- Click "Add Task Group", Search for "Deploy CEF's DNN Site (CPB)"
- CPBDev.us (dev.)
- 4.7.0-CPB-DEV-Drop-DNN
- CEF-CPB_DEV
- SQLB\SQL2016
- C:\Data\Projects\CPB\DEV
- Create DEV, STG, Working, PROD, images, buildconfigs folders on deployment environment
- Create dev app pools
- DNN_CPB
- SQLB\SQL2016
- Reference name "CEF CPB DNN Deployment"
- Click "Release", "Direct Release", Select DFO, click "Create"
- Copy config files into their paths under backup-configs folder
CEF
- Create new folder CEF-Product => Builds => Definition => Clients => CPB
- Clone VERA (example) Rename and save to CPBuild folder
- Triggers under Builds
- change VERA/Development branch to CPBuild/Development
- Options
- Update Project Manager
- Tasks
- Ensure name is correct
- List Source
- Update default branch to CPBuild from VERA
- Task Group
- Update anywhere "VERA" appears to "CPBuild"
- Update VSTS Project name
- Update skin folder name
- Update my client specific fields
- Click Save & Queue
- Update config files with appropriate settings in backup config folder
- Releases => VERA => Delete VERA artifact and replace with CPB artifact
- Click "Lightning Bolt" =>? click "Enabled" for continuous integration
- Select development branch for CPBuild
- Click Lightning Bolt for development environment
- Enable artifact filters => Add CPBuild artifact
- Select CPBuild development branch for artifact filter
- Options => General => Update release name format
- Update "All definitions" name at top
- Tasks
- Agent Phase => Consume agent phase matches per environment
- Task Group
- Replace "VERA" with CPBuild
- Click "Release" in upper right, and click "Create Release" => "Create"
- Click "Logs" to verify
- Create STG, PRD Builds for CPBuild by cloning DEV and updating