This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
sonic-buildimage/.azure-pipelines
Ye Jianquan 2bf2e02719
Enable to cancel pipeline jobs during checkout code and tests (#12436)
co-authorized by: jianquanye@microsoft.com

Why I did it
Now, checkout code step and KVM test job can't be cancelled even though the whole build is cancelled.
That's because by using Azure Pipeline Conditions, we customized the running condition, and we need to react to the Cancel action explicitly by asserting 'succeeded'
https://learn.microsoft.com/en-us/azure/devops/pipelines/process/expressions?view=azure-devops#succeeded
https://learn.microsoft.com/en-us/azure/devops/pipelines/process/conditions?view=azure-devops&tabs=yaml#ive-got-a-conditional-step-that-runs-even-when-a-job-is-canceled-how-do-i-manage-to-cancel-all-jobs-at-once

How I did it
Assert 'succeeded' condition explicitly.

How to verify it
Verified by cancelling and rerunning the azure pipeline.
2022-10-19 12:26:50 +08:00
..
azure-pipelines-build.yml Build the Broadcom DNX RPC container as part of the official build (#11829) 2022-08-24 11:42:15 -07:00
azure-pipelines-download-certificate.yml [Ci]: Support to sign image for cisco-8000 uefi secure boot (#10616) 2022-04-21 12:13:09 +08:00
azure-pipelines-image-template.yml Enable to cancel pipeline jobs during checkout code and tests (#12436) 2022-10-19 12:26:50 +08:00
azure-pipelines-job-groups.yml [ci]: Increase pipeline build timeout from 12 hours to 15 hours (#9200) 2021-11-09 07:35:18 -08:00
azure-pipelines-Official.yml Add azure pipelines for reproducible build (#6870) 2021-02-25 13:44:58 +08:00
azure-pipelines-repd-build-variables.yml [ci] Update reproducible build related pipeline. (#11810) 2022-08-29 11:26:15 +08:00
azure-pipelines-UpgrateVersion.yml [ci] Update azp reference to support transfering organization from Azure to sonic-net (#11601) 2022-08-02 16:24:14 +08:00
build-commonlib.yml [ci] Update azp reference to support transfering organization from Azure to sonic-net (#11601) 2022-08-02 16:24:14 +08:00
build-template.yml [ci]: get build logs when build fails (#7219) 2021-04-03 09:28:56 -07:00
check-dirty-version.yml [Ci]: check if there is a sonic dirty version issue (#10445) 2022-04-08 10:49:21 +08:00
cleanup.yml [CI] Fix pipeline template artifacts struct bug and cleanup bug 2021-04-21 09:03:11 -07:00
docker-sonic-mgmt.yml [CI] Add publish step in docker-sonic-mgmt azure pipeline (#7902) 2021-06-17 10:26:21 -07:00
docker-sonic-slave-template.yml [ci] Use absolute template file path in docker-sonic-slave pipeline. (#12153) 2022-09-23 12:54:57 +08:00
docker-sonic-slave.yml [ci] Update docker sonic slave pipeline to build slave base docker (#11908) 2022-09-21 15:50:30 +08:00
dpkg-cache-cleanup.yml [CI] Add Bldenv pipeline files (#7458) 2021-04-30 16:35:38 -07:00
official-build-cache.yml [Build]: Enable marvell-armhf PR check (#10259) 2022-03-23 22:36:53 +08:00
official-build-cisco-8000.yml [ci] Fix some not sai package removed issue (#11544) 2022-07-27 09:58:04 -07:00
official-build-multi-asic.yml [multi-asic]: Add job to run multi-asic VS tests in sonic-buildimage pipeline (#11517) 2022-07-27 11:47:00 -07:00
official-build.yml [ci] Fix bug involved by PR 11810 which affect official build pipeline (#11891) 2022-08-30 14:23:09 +08:00
run-test-template.yml Define whether a test is required by code (#11921) 2022-09-03 06:53:54 +08:00
template-clean-sonic-slave.yml [ci] Set default ACR in UpgrateVersion/PR/official pipeline. (#10341) 2022-04-02 07:48:44 +08:00
template-commonlib.yml [ci] Add arm artifacts in common lib azure pipeline (#10817) 2022-05-23 17:52:56 +08:00
template-skipvstest.yml [ci] Support to skip vstest using include/exclude config file. (#11086) 2022-06-17 15:39:41 +08:00
template-variables.yml [Build] Improve docker build performance (#11111) 2022-06-16 14:13:01 +08:00
trigger-publish-artifacts-build.yml [Ci]: Fix to trigger the publish pipeline in failure build issue (#10847) 2022-05-20 14:32:53 +08:00
vstest-exclude [ci] Add vstest skip folder sonic-slave-* (#11295) 2022-07-15 13:13:58 +08:00
vstest-include [ci] Support to skip vstest using include/exclude config file. (#11086) 2022-06-17 15:39:41 +08:00