diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8730703..de4fb9d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -5,8 +5,8 @@ trigger: branches: - include: - - "feature/2167/deploy-yaml" + exclude: + - "*" tags: include: - "stage-*" @@ -14,11 +14,16 @@ trigger: pool: vmImage: ubuntu-latest -steps: - - script: echo Checked out $(Build.SourceVersion) tagged with $(Build.SourceBranch) - displayName: "Run a one-line script" +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 a multi-line script" + - script: | + echo Add other tasks to build, test, and deploy your project. + echo See https://aka.ms/yaml + displayName: "Run Build"