From 3357e5fe2d7dbab8f81fb5be1ad477940c32397e Mon Sep 17 00:00:00 2001 From: "x.yumoto.k" Date: Mon, 24 Jul 2023 17:34:54 +0900 Subject: [PATCH] =?UTF-8?q?develop=E3=83=96=E3=83=A9=E3=83=B3=E3=83=81?= =?UTF-8?q?=E3=81=ABstage-=E3=82=BF=E3=82=B0=E3=81=8C=E4=BB=98=E3=81=91?= =?UTF-8?q?=E3=82=89=E3=82=8C=E3=81=9F=E5=A0=B4=E5=90=88=E3=81=AB=E3=83=93?= =?UTF-8?q?=E3=83=AB=E3=83=89=E3=82=92=E8=A1=8C=E3=81=86pipeline=E3=82=92?= =?UTF-8?q?=E5=AE=9A=E7=BE=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- azure-pipelines.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) 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"