From 8fc2b48db70b89e57d055e4686e49b583574d927 Mon Sep 17 00:00:00 2001 From: glx22 Date: Thu, 2 May 2019 22:17:09 +0200 Subject: Fix: [AzurePipeline] ${Agent.JobName} content changed (#7556) * Fix: [AzurePipeline] ${Agent.JobName} content changed * Fix: [AzurePipeline] also update commit-checker condition --- azure-pipelines/templates/linux-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azure-pipelines/templates/linux-build.yml') diff --git a/azure-pipelines/templates/linux-build.yml b/azure-pipelines/templates/linux-build.yml index 7f442904c..a173f3364 100644 --- a/azure-pipelines/templates/linux-build.yml +++ b/azure-pipelines/templates/linux-build.yml @@ -24,7 +24,7 @@ steps: ${{ if eq(parameters.Image, 'compile-farm-ci') }}: displayName: 'Build and test' # Run the commit-checker only if it is a Pull Request - condition: and(succeeded(), or(ne(variables['Agent.JobName'], 'commit-checker'), eq(variables['Build.Reason'], 'PullRequest'))) + condition: and(succeeded(), or(not(contains(variables['Agent.JobName'], 'commit-checker')), eq(variables['Build.Reason'], 'PullRequest'))) inputs: command: 'Run an image' imageName: openttd/${{ parameters.Image }}:${{ parameters.Tag }} -- cgit v1.2.3-54-g00ecf