Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TARDIS ref parameter on pipeline template #1534

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions azure-pipelines/templates/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ parameters:
type: boolean
default: false

- name: tardisRef
type: string
default: 'HEAD'

steps:
- bash: echo "##vso[task.setvariable variable=shellopts]errexit"
displayName: 'Set BASH exit on error'
Expand All @@ -38,6 +42,12 @@ steps:
path: s/tardis
displayName: 'Fetch main repository'

- ${{ if ne(parameters.tardisRef, 'HEAD') }}:
- bash: |
cd $(tardis.dir)
git checkout ${{ parameters.tardisRef }}
displayName: 'Check out to ${{ parameters.tardisRef }}'

- ${{ if eq(parameters.fetchRefdata, true) }}:
- checkout: git://TARDIS/tardis-refdata
lfs: true
Expand Down