developブランチにstage-タグが付けられた場合にビルドを行うpipelineを定義
This commit is contained in:
parent
12f8575ccb
commit
3357e5fe2d
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user