Skip to content

Commit

Permalink
👷 Refactor name of Azure Pipeline job
Browse files Browse the repository at this point in the history
  • Loading branch information
hjorslev committed Jul 12, 2020
1 parent d980d52 commit 5d46852
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .azure-pipelines/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ trigger:
pr:
- master

variables:
${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
Trigger: "$(SourceBranchName)"
${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
Trigger: "PR #$(System.PullRequest.PullRequestNumber)"

name: "$(BuildID)-$(Date:yyyy-MM-dd)$(Rev:.r) $(TeamProject) (${{ variables.Trigger }})"

stages:
- stage: Test
jobs:
Expand Down

0 comments on commit 5d46852

Please sign in to comment.