# 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: tags: include: - stage-* pool: vmImage: ubuntu-latest jobs: - job: Build pool: vmImage: ubuntu-latest steps: - checkout: self - script: | git fetch origin main:main if git merge-base --is-ancestor $(Build.SourceVersion) main; then echo "This commit is in the main branch." else echo "This commit is not in the main branch." exit 1 fi displayName: 'タグが付けられたCommitがdevelopブランチに存在するか確認' - 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"