Commit 03b2c3b8 authored by Hema Vishnu Pola [Microsoft]'s avatar Hema Vishnu Pola [Microsoft]
Browse files

added conditional infra repo usage for external defined pipelines.

parent 2705da0f
......@@ -21,6 +21,10 @@ jobs:
clean: all
steps:
# Checkout to use the InfraRepo (resource repository from main pipeline) if creating the pipeline from outside of infra-azure-provisioning repo.
- checkout: InfraRepo
persistCredentials: true
condition: ne(variables['INFRA_REPO'], '')
- task: GoTool@0
displayName: 'Ensure Golang'
inputs:
......
......@@ -25,6 +25,12 @@ trigger:
exclude:
- /**/*.md
# Use this resource when creating and using a pipeline external to this repo.
# resources:
# repositories:
# - repository: InfraRepo
# type: git
# name: infra-azure-provisioning
variables:
- name: 'TF_VERSION'
......@@ -38,6 +44,9 @@ variables:
- name: 'TEST_HARNESS_DIR'
value: 'test-harness'
- group: 'Infrastructure Pipeline Variables'
# Add this variable when creating and using pipeline external to this repo.
# - name: 'INFRA_REPO'
# value: $[ resources.repositories['InfraRepo'].name ]
stages:
- template: /devops/infra-prepare-stage.yml
......
......@@ -26,6 +26,12 @@ trigger:
exclude:
- /**/*.md
# Use this resource when creating and using a pipeline external to this repo.
# resources:
# repositories:
# - repository: InfraRepo
# type: git
# name: infra-azure-provisioning
variables:
- name: 'TF_VERSION'
......@@ -39,6 +45,9 @@ variables:
- name: 'TEST_HARNESS_DIR'
value: 'test-harness'
- group: 'Infrastructure Pipeline Variables'
# Add this variable when creating and using pipeline external to this repo.
# - name: 'INFRA_REPO'
# value: $[ resources.repositories['InfraRepo'].name ]
stages:
- template: /devops/infra-prepare-stage.yml
......
......@@ -26,6 +26,12 @@ trigger:
exclude:
- /**/*.md
# Use this resource when creating and using a pipeline external to this repo.
# resources:
# repositories:
# - repository: InfraRepo
# type: git
# name: infra-azure-provisioning
variables:
- name: 'TF_VERSION'
......@@ -39,6 +45,9 @@ variables:
- name: 'TEST_HARNESS_DIR'
value: 'test-harness'
- group: 'Infrastructure Pipeline Variables'
# Add this variable when creating and using pipeline external to this repo.
# - name: 'INFRA_REPO'
# value: $[ resources.repositories['InfraRepo'].name ]
stages:
- template: /devops/infra-prepare-stage.yml
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment