Skip to content

Commit

Permalink
only pr
Browse files Browse the repository at this point in the history
Signed-off-by: Guohan Lu <[email protected]>
  • Loading branch information
lguohan committed Feb 10, 2021
1 parent ba96a77 commit a4ed4a9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 26 deletions.
5 changes: 0 additions & 5 deletions .azure-pipelines/build-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,8 @@ parameters:
- name: artifact_name
type: string

- name: run
type: boolean
default: true

jobs:
- job:
condition: eq(${{ parameters.run }}, true)
pool: ${{ parameters.pool }}
displayName: ${{ parameters.arch }}
timeoutInMinutes: ${{ parameters.timeout }}
Expand Down
36 changes: 15 additions & 21 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ trigger:
include:
- "*"

variables:
- name: isPullRequest
value: $[eq(variables['Build.Reason'], 'PullRequest')]

stages:
- stage: Build

Expand All @@ -21,22 +17,20 @@ stages:
arch: amd64
sonic_slave: sonic-slave-buster
artifact_name: sonic-linux-kernel
run: true

- template: .azure-pipelines/build-template.yml
parameters:
arch: armhf
timeout: 1440
pool: sonicbld_8c
sonic_slave: sonic-slave-buster-armhf
artifact_name: sonic-linux-kernel.armhf
run: $[not($(isPullRequest))]
- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
- template: .azure-pipelines/build-template.yml
parameters:
arch: armhf
timeout: 1440
pool: sonicbld_8c
sonic_slave: sonic-slave-buster-armhf
artifact_name: sonic-linux-kernel.armhf

- template: .azure-pipelines/build-template.yml
parameters:
arch: arm64
timeout: 1440
pool: sonicbld_8c
sonic_slave: sonic-slave-buster-arm64
artifact_name: sonic-linux-kernel.arm64
run: $[not($(isPullRequest))]
- template: .azure-pipelines/build-template.yml
parameters:
arch: arm64
timeout: 1440
pool: sonicbld_8c
sonic_slave: sonic-slave-buster-arm64
artifact_name: sonic-linux-kernel.arm64

0 comments on commit a4ed4a9

Please sign in to comment.