Files @ r23292:6ef962e537f8
Branch filter:

Location: cpp/openttd-patchpack/source/azure-pipelines/templates/linux-build.yml

Patric Stout
Fix: [AzurePipelines] in case of a Pull Request, use that number (prefix with 'pr') as branchname

Otherwise the branch name is always 'merge', which is not really
useful or verbose.
parameters:
  Image: ''
  Tag: ''
  ContainerCommand: ''

steps:
- task: Docker@1
  ${{ if eq(parameters.Image, 'compile-farm') }}:
    displayName: 'Build'
  ${{ if eq(parameters.Image, 'compile-farm-ci') }}:
    displayName: 'Build and test'
  inputs:
    command: 'Run an image'
    imageName: openttd/${{ parameters.Image }}:${{ parameters.Tag }}
    volumes: '$(Build.SourcesDirectory):$(Build.SourcesDirectory)'
    workingDirectory: '$(Build.SourcesDirectory)'
    containerCommand: ${{ parameters.ContainerCommand }}
    runInBackground: false