-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into qiluo/tagged
- Loading branch information
Showing
2,648 changed files
with
251,644 additions
and
44,564 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
variables: | ||
${{ if and(ge(variables['Build.SourceBranchName'], '202012'), le(variables['Build.SourceBranchName'], '299999')) }}: | ||
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web,git,docker' | ||
${{ if or(lt(variables['Build.SourceBranchName'], '202012'), gt(variables['Build.SourceBranchName'], '299999')) }}: | ||
VERSION_CONTROL_OPTIONS: '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
pr: none | ||
trigger: none | ||
schedules: | ||
- cron: "0 0 * * *" | ||
displayName: Daily build | ||
branches: | ||
include: | ||
- master | ||
- 202??? | ||
resources: | ||
repositories: | ||
- repository: buildimage | ||
type: github | ||
name: Azure/sonic-buildimage | ||
ref: master | ||
endpoint: build | ||
|
||
jobs: | ||
- template: .azure-pipelines/template-commonlib.yml@buildimage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
steps: | ||
- script: | | ||
. functions.sh | ||
SONIC_VERSION=$(sonic_get_version) | ||
echo "SONIC_VERSION=$SONIC_VERSION" | ||
if [[ "$SONIC_VERSION" == *dirty* ]]; then | ||
# Print the detail dirty info | ||
git status --untracked-files=no -s --ignore-submodules | ||
# Exit with error, if it is a PR build | ||
if [ "$(Build.Reason)" == "PullRequest" ]; then | ||
echo "Build failed for the dirty version: $SONIC_VERSION" 1>&2 | ||
exit 1 | ||
fi | ||
fi | ||
displayName: "Check the dirty version" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# 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 | ||
# Build and push sonic-slave-[buster|jessie|stretch] images for amd64/armhf/arm64 | ||
resources: | ||
repositories: | ||
- repository: buildimage | ||
type: github | ||
name: Azure/sonic-buildimage | ||
ref: master | ||
endpoint: build | ||
|
||
schedules: | ||
- cron: "0 8 * * *" | ||
branches: | ||
include: | ||
- master | ||
- 202012 | ||
always: true | ||
|
||
trigger: none | ||
pr: | ||
branches: | ||
include: | ||
- master | ||
paths: | ||
include: | ||
- sonic-slave-jessie | ||
- sonic-slave-stretch | ||
- sonic-slave-buster | ||
- sonic-slave-bullseye | ||
- .azure-pipelines | ||
|
||
parameters: | ||
- name: 'dists' | ||
type: object | ||
default: | ||
- bullseye | ||
- buster | ||
- stretch | ||
|
||
stages: | ||
- stage: Build | ||
jobs: | ||
- ${{ each dist in parameters.dists }}: | ||
- ${{ if contains(variables['Build.DefinitionName'], dist) }}: | ||
- template: docker-sonic-slave-template.yml | ||
parameters: | ||
pool: sonicbld-arm64 | ||
arch: arm64 | ||
dist: ${{ dist }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# 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 | ||
# Build and push sonic-slave-[buster|jessie|stretch] images for amd64/armhf/arm64 | ||
resources: | ||
repositories: | ||
- repository: buildimage | ||
type: github | ||
name: Azure/sonic-buildimage | ||
ref: master | ||
endpoint: build | ||
|
||
schedules: | ||
- cron: "0 8 * * *" | ||
branches: | ||
include: | ||
- master | ||
- 202012 | ||
always: true | ||
|
||
trigger: none | ||
pr: | ||
branches: | ||
include: | ||
- master | ||
paths: | ||
include: | ||
- sonic-slave-jessie | ||
- sonic-slave-stretch | ||
- sonic-slave-buster | ||
- sonic-slave-bullseye | ||
- .azure-pipelines | ||
|
||
parameters: | ||
- name: 'dists' | ||
type: object | ||
default: | ||
- bullseye | ||
- buster | ||
- stretch | ||
|
||
stages: | ||
- stage: Build | ||
jobs: | ||
- ${{ each dist in parameters.dists }}: | ||
- ${{ if contains(variables['Build.DefinitionName'], dist) }}: | ||
- template: docker-sonic-slave-template.yml | ||
parameters: | ||
pool: sonicbld-armhf | ||
arch: armhf | ||
dist: ${{ dist }} |
Oops, something went wrong.