-
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 'sonic-net:master' into ssd_util_plugin
- Loading branch information
Showing
3,829 changed files
with
543,203 additions
and
67,046 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# C/C++ with GCC | ||
# Build your C/C++ project with GCC using make. | ||
# Add steps that publish test results, save build artifacts, deploy, and more: | ||
# https://docs.microsoft.com/azure/devops/pipelines/apps/c-cpp/gcc | ||
pr: none | ||
|
||
trigger: | ||
batch: true | ||
branches: | ||
include: | ||
- master | ||
- 202??? | ||
|
||
schedules: | ||
- cron: "0 0 * * *" | ||
displayName: Daily build | ||
branches: | ||
include: | ||
- master | ||
- 202??? | ||
always: true | ||
|
||
stages: | ||
- stage: Build | ||
|
||
jobs: | ||
- job: | ||
displayName: "amd64/ubuntu-20.04" | ||
pool: | ||
vmImage: 'ubuntu-20.04' | ||
|
||
steps: | ||
- checkout: self | ||
submodules: true | ||
- script: | | ||
sudo apt-get update | ||
sudo apt-get install -y make wget libtool m4 autoconf dh-exec libdebhelper-perl=13.6ubuntu1~bpo20.04.1 debhelper=13.6ubuntu1~bpo20.04.1 \ | ||
cmake pkg-config python3-pip python cmake libgtest-dev libgmock-dev libyang-dev \ | ||
debhelper-compat dh-elpa dh-sequence-python3 python3-all \ | ||
libpython3-all-dev python3-six xmlto unzip rake-compiler gem2deb pkg-php-tools \ | ||
ant default-jdk maven-repo-helper libguava-java \ | ||
libboost-all-dev libgtest-dev build-essential swig4.0 swig | ||
sudo pip3 install pytest click | ||
wget http://ftp.us.debian.org/debian/pool/main/libg/libgoogle-gson-java/libgoogle-gson-java_2.8.6-1+deb11u1_all.deb | ||
sudo dpkg -i libgoogle-gson-java_2.8.6-1+deb11u1_all.deb | ||
mkdir -p /tmp/artifacts | ||
displayName: "Install dependencies" | ||
- script: | | ||
BLDENV=bullseye SONIC_CONFIG_MAKE_JOBS=$(nproc) CONFIGURED_ARCH=amd64 DEST=/tmp/artifacts make -f ../rules/protobuf.mk -f protobuf/Makefile | ||
workingDirectory: src | ||
displayName: "Build protobuf" | ||
- script: | | ||
sudo dpkg -i protobuf-compiler_3.21.12-3_amd64.deb libprotoc32_3.21.12-3_amd64.deb \ | ||
libprotobuf32_3.21.12-3_amd64.deb libprotobuf-dev_3.21.12-3_amd64.deb \ | ||
libprotobuf-lite32_3.21.12-3_amd64.deb | ||
workingDirectory: /tmp/artifacts | ||
displayName: "Install protobuf" | ||
- script: | | ||
dpkg-buildpackage -rfakeroot -b -us -uc | ||
workingDirectory: src/sonic-dash-api | ||
displayName: "Build sonic-dash-api" | ||
- script: | | ||
cp *.deb /tmp/artifacts | ||
workingDirectory: src | ||
- publish: /tmp/artifacts | ||
artifact: sonic-buildimage.amd64.ubuntu20_04 | ||
displayName: "Archive sonic-buildimage debian packages for ubuntu20.04" |
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 |
---|---|---|
@@ -1,7 +1,2 @@ | ||
variables: | ||
${{ if eq(variables['Build.Reason'],'PullRequest') }}: | ||
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=$([[ "$(System.PullRequest.TargetBranch)" =~ ^20[2-9][0-9]{3}$ ]] && echo deb,py2,py3,web,git,docker)' | ||
${{ elseif ne(variables['Build.SourceBranchName'],'master') }}: | ||
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web,git,docker' | ||
${{ else }}: | ||
VERSION_CONTROL_OPTIONS: '' | ||
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web,git,docker' |
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,63 @@ | ||
# 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-mgmt image | ||
|
||
schedules: | ||
- cron: "0 8 * * *" | ||
branches: | ||
include: | ||
- master | ||
always: true | ||
|
||
trigger: none | ||
pr: | ||
branches: | ||
include: | ||
- master | ||
paths: | ||
include: | ||
- dockers/docker-sonic-mgmt | ||
|
||
parameters: | ||
- name: registry_url | ||
type: string | ||
default: sonicdev-microsoft.azurecr.io | ||
- name: registry_conn | ||
type: string | ||
default: sonicdev | ||
|
||
stages: | ||
- stage: Build | ||
jobs: | ||
- job: Build | ||
pool: sonicbld | ||
timeoutInMinutes: 360 | ||
steps: | ||
- template: cleanup.yml | ||
- checkout: self | ||
clean: true | ||
- bash: | | ||
set -xe | ||
git submodule update --init --recursive -- src/sonic-platform-daemons src/sonic-genl-packet src/sonic-sairedis src/ptf src/sonic-device-data | ||
make SONIC_BUILD_JOBS=$(nproc) DEFAULT_CONTAINER_REGISTRY=publicmirror.azurecr.io ENABLE_DOCKER_BASE_PULL=y configure PLATFORM=generic | ||
make -f Makefile.work BLDENV=bullseye SONIC_BUILD_JOBS=$(nproc) DEFAULT_CONTAINER_REGISTRY=publicmirror.azurecr.io ENABLE_DOCKER_BASE_PULL=y LEGACY_SONIC_MGMT_DOCKER=n target/docker-sonic-mgmt.gz | ||
cp target -r $(Build.ArtifactStagingDirectory)/target | ||
docker load -i target/docker-sonic-mgmt.gz | ||
docker tag docker-sonic-mgmt $REGISTRY_SERVER/docker-sonic-mgmt:py3only | ||
env: | ||
REGISTRY_SERVER: ${{ parameters.registry_url }} | ||
displayName: Build docker-sonic-mgmt.gz | ||
- task: Docker@2 | ||
displayName: Upload image | ||
inputs: | ||
containerRegistry: ${{ parameters.registry_conn }} | ||
repository: docker-sonic-mgmt | ||
command: push | ||
tags: py3only | ||
- publish: $(Build.ArtifactStagingDirectory) | ||
artifact: 'docker-sonic-mgmt' | ||
displayName: "Archive docker image sonic-mgmt" | ||
|
Oops, something went wrong.