developブランチにstage-タグが付けられた場合にビルドを行うpipelineを定義
This commit is contained in:
parent
12f8575ccb
commit
3357e5fe2d
@ -5,8 +5,8 @@
|
|||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branches:
|
branches:
|
||||||
include:
|
exclude:
|
||||||
- "feature/2167/deploy-yaml"
|
- "*"
|
||||||
tags:
|
tags:
|
||||||
include:
|
include:
|
||||||
- "stage-*"
|
- "stage-*"
|
||||||
@ -14,11 +14,16 @@ trigger:
|
|||||||
pool:
|
pool:
|
||||||
vmImage: ubuntu-latest
|
vmImage: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
jobs:
|
||||||
- script: echo Checked out $(Build.SourceVersion) tagged with $(Build.SourceBranch)
|
- job: Build
|
||||||
displayName: "Run a one-line script"
|
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: |
|
- script: |
|
||||||
echo Add other tasks to build, test, and deploy your project.
|
echo Add other tasks to build, test, and deploy your project.
|
||||||
echo See https://aka.ms/yaml
|
echo See https://aka.ms/yaml
|
||||||
displayName: "Run a multi-line script"
|
displayName: "Run Build"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user