Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added abc
Empty file.
38 changes: 33 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,21 @@
trigger:
branches:
include:
- '*'
- master
- 20????
pr:
branches:
include:
- master
- 20????
schedules:
- cron: "0 0 * * 0"
displayName: Weekly Sunday build
branches:
include:
- master
- 20????
always: true

parameters:
- name: dist
Expand All @@ -24,17 +38,31 @@ container:
image: sonicdev-microsoft.azurecr.io:443/sonic-slave-bullseye:master

steps:
- script: |
if [[ "$(Build.Reason)" == "PullRequest" ]];then
echo "##vso[task.setvariable variable=sourceBranch]$(System.PullRequest.TargetBranch)"
else
echo "##vso[task.setvariable variable=sourceBranch]$(Build.SourceBranchName)"
fi
displayName: "Get correct artifact downloading branch"
- task: DownloadPipelineArtifact@2
inputs:
source: specific
project: build
pipeline: 1
pipeline: 142
artifact: sonic-buildimage.vs
runVersion: 'latestFromBranch'
runBranch: 'refs/heads/master'
runBranch: 'refs/heads/$(sourceBranch)'
patterns: |
target/debs/${{ parameters.dist }}/*.deb
target/python-wheels/${{ parameters.dist }}/*.whl
target/debs/**/libnl-3-200_*.deb
target/debs/**/libnl-genl-3-200_*.deb
target/debs/**/libnl-route-3-200_*.deb
target/debs/**/libnl-nf-3-200_*.deb
target/debs/**/libhiredis0.14_*.deb
target/debs/**/libyang_1.*.deb
target/debs/**/libswsscommon_1.0.0_amd64.deb
target/debs/**/python3-swsscommon_1.0.0_amd64.deb
target/python-wheels/**/swsssdk-2.0.1-py3-none-any.whl
displayName: "Download artifacts from latest sonic-buildimage build"

- script: |
Expand Down