OMDSCloud/azure-pipelines.yml

30 lines
792 B
YAML

# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
branches:
exclude:
- "*"
tags:
include:
- "stage-*"
pool:
vmImage: ubuntu-latest
jobs:
- job: Build
pool:
vmImage: ubuntu-latest
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/stage-'), eq(variables['Build.SourceBranchName'], 'develop'))
steps:
- script: echo Checked out $(Build.SourceVersion) tagged with $(Build.SourceBranch)
displayName: "Run a one-line script"
- script: |
echo Add other tasks to build, test, and deploy your project.
echo See https://aka.ms/yaml
displayName: "Run Build"