Azure DevOps contd
Variable Groups
- Refer Here for official docs
-
Lets create a variable group
- Lets use these variables in some pipeline
---
trigger:
- master
pool:
name: "Azure Pipelines"
vmImage: "ubuntu-22.04"
variables:
- group: myvariables
steps:
- task: Npm@1
inputs:
command: 'install'
- task: Npm@1
inputs:
command: custom
customCommand: run build
- script: 'if [[ "$username" == "admin" ]]; then echo success ; fi'
- To set variables in the pipeline Refer Here
Locking branches
- Refer Here for locking
Azure Artifacts
- Refer Here for azure artifact feed
- Refer Here for azure devops artifact push