diff --git a/abc b/abc new file mode 100644 index 0000000..e69de29 diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 46d1469..a29ca7b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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 @@ -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: |