Skip to content

Commit e810937

Browse files
Update azure-pipelines.yml to use ubuntu-20.04 (#16485)
* Update azure-pipelines.yml * Update ShouldSendPRToMain.yml * Update BranchProtectionForPrivateRepo.yml
1 parent f900b57 commit e810937

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.azure-pipelines/BranchProtectionForPrivateRepo.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
jobs:
22
- job: "BranchProtectionForPrivateRepo"
3-
pool:
4-
vmImage: 'Ubuntu 16.04'
53
condition: and(variables['PRIVATE'], eq(variables['System.PullRequest.TargetBranch'], 'main'))
64
steps:
75
- script: '>&2 echo "the branch is protected"'

.azure-pipelines/ShouldSendPRToMain.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
jobs:
22
- job: "ShouldSendPRToMain"
3-
pool:
4-
vmImage: 'Ubuntu 16.04'
53
condition: eq(variables['System.PullRequest.TargetBranch'], 'master')
64
steps:
75
- script: '>&2 echo "##vso[task.logissue type=error]Please edit the pull request to targeting new default branch main"'

azure-pipelines.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: "Azure OpenAPI"
22

3+
pool:
4+
vmImage: 'Ubuntu-20.04'
5+
36
trigger:
47
branches:
58
include:
@@ -19,4 +22,4 @@ variables:
1922

2023
jobs:
2124
- template: .azure-pipelines/BranchProtectionForPrivateRepo.yml
22-
- template: .azure-pipelines/ShouldSendPRToMain.yml
25+
- template: .azure-pipelines/ShouldSendPRToMain.yml

0 commit comments

Comments
 (0)