DevOps Classroom notes 05/Nov/2023

Azure DevOps contd

Variable Groups

  • Refer Here for official docs
  • Lets create a variable group
    Preview
    Preview
  • 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'

Locking branches

Azure Artifacts

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube