Update azure-pipelines.yml to use ubuntu-20.04 (#16485)
* Update azure-pipelines.yml * Update ShouldSendPRToMain.yml * Update BranchProtectionForPrivateRepo.yml
This commit is contained in:
Родитель
f900b57969
Коммит
e81093786c
|
@ -1,7 +1,5 @@
|
||||||
jobs:
|
jobs:
|
||||||
- job: "BranchProtectionForPrivateRepo"
|
- job: "BranchProtectionForPrivateRepo"
|
||||||
pool:
|
|
||||||
vmImage: 'Ubuntu 16.04'
|
|
||||||
condition: and(variables['PRIVATE'], eq(variables['System.PullRequest.TargetBranch'], 'main'))
|
condition: and(variables['PRIVATE'], eq(variables['System.PullRequest.TargetBranch'], 'main'))
|
||||||
steps:
|
steps:
|
||||||
- script: '>&2 echo "the branch is protected"'
|
- script: '>&2 echo "the branch is protected"'
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
jobs:
|
jobs:
|
||||||
- job: "ShouldSendPRToMain"
|
- job: "ShouldSendPRToMain"
|
||||||
pool:
|
|
||||||
vmImage: 'Ubuntu 16.04'
|
|
||||||
condition: eq(variables['System.PullRequest.TargetBranch'], 'master')
|
condition: eq(variables['System.PullRequest.TargetBranch'], 'master')
|
||||||
steps:
|
steps:
|
||||||
- script: '>&2 echo "##vso[task.logissue type=error]Please edit the pull request to targeting new default branch main"'
|
- script: '>&2 echo "##vso[task.logissue type=error]Please edit the pull request to targeting new default branch main"'
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
name: "Azure OpenAPI"
|
name: "Azure OpenAPI"
|
||||||
|
|
||||||
|
pool:
|
||||||
|
vmImage: 'Ubuntu-20.04'
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branches:
|
branches:
|
||||||
include:
|
include:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче