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 comment

Turn on JavaScript to leave a comment.

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
Exit mobile version
%%footer%%