DevOps Classroom notes 05/Nov/2023

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'

Locking branches

Azure Artifacts

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

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

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company

Discover more from Direct DevOps from Quality Thought

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

Continue reading

Exit mobile version
%%footer%%