Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

394 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GIT - Dev to Uat

1.Run only the first time (before running prereq)

git clone https://github.com/ORG/azure-application-uta-westeurope.git
cd azure-application-uta-westeurope
git remote add upstream https://github.com/ORG/azure-application-dev-westeurope.git
git pull upsteam main
git config merge.ours.driver true
git checkout main
git checkout upstream/main -- .gitattributes
git commit -m "Added .gitattributes"
git push

2.Run each time

git checkout main
git pull --prune
#### Remove
git branch -D release/qua
git fetch upstream
git diff main upstream/main -- ':!/.github/address_spaces.txt' ':!/.github/workflows/context.json'
git checkout -b release/qua
git merge upstream/main --allow-unrelated-histories --strategy-option theirs 
git push --set-upstream origin release/qua

3.Run pipeline on release/qua branch - only plan

4.Create a pull request into main

5.Run pipeline on main branch

%%{init: { 'theme': 'base', 'gitGraph': { 'mainBranchName': 'main (prod)', 'showCommitLabel': false}} }%%

gitGraph
       branch "main (qua)" order: 7
       branch "main (dev)" order: 9
       commit
       branch "feature/XXX" order: 10
       commit
       checkout "main (dev)"
       merge "feature/XXX" tag:"PR"
       checkout "main (qua)"
       commit
       branch release/qua order: 8
       merge "main (dev)"
       checkout "main (qua)"
       merge release/qua tag:"PR"
       checkout "main (prod)"
       commit
       branch release/prod order: 6
       merge "main (qua)"
       checkout "main (prod)"
       merge release/prod tag:"PR"

Loading

Devops Agent - Build An Image Using Service Principal

cd .\Documents\
git clone https://github.com/actions/runner-images.git
cd .\runner-images\
Import-Module .\helpers\GenerateResourcesAndImage.ps1

#Windows
.\helpers\GenerateResourcesAndImage.ps1; GenerateResourcesAndImage `
-SubscriptionId '123abc' `
-ResourceGroupName 'rg-infra-image-prod-01' `
-ImageType 'Windows2022' `
-ManagedImageName ("image-agent-windows-$(Get-Date -Format "yyyy-MM-dd")").ToLower() `
-AzureLocation 'westeurope' `
-AzureClientId "123abc" `
-AzureClientSecret "123abc" `
-ImageGenerationRepositoryRoot $pwd `
-SecondsToWaitForServicePrincipalSetup 120 `
-AzureTenantId "123abc" `
-OnError "ask" `
-Tags @{}

#Linux 2024
.\helpers\GenerateResourcesAndImage.ps1; GenerateResourcesAndImage `
-SubscriptionId '123abc' `
-ResourceGroupName 'rg-infra-image-prod-01' `
-ImageType 'Ubuntu2404' `
-ManagedImageName ("image-agent-linux24-$(Get-Date -Format "yyyy-MM-dd")").ToLower() `
-AzureLocation 'westeurope' `
-AzureClientId "123abc" `
-AzureClientSecret "123abc" `
-ImageGenerationRepositoryRoot $pwd `
-SecondsToWaitForServicePrincipalSetup 120 `
-AzureTenantId "123abc" `
-OnError "ask" `
-Tags @{}

Devops

Work items permissions

Project Settings -> Project Configuration -> Areas -> Select the specific Area -> Right click or click "..." -> Select Security -> Select the specific group or user, make sure "Edit work items in this node" is set to Allow.

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages