Commit Graph

20 Commits

Author SHA1 Message Date
Liu Shilong
02e0aff5e7
[ci] Set default ACR in UpgrateVersion/PR/official pipeline. (#11002)
* [ci] Set default ACR in UpgrateVersion/PR/official pipeline. (#10341)

Why I did it
docker hub will limit the pull rate.
Use ACR instead to pull debian related docker image.

How I did it
Set DEFAULT_CONTAINER_REGISTRY in pipeline.

* Add a config variable to override default container registry instead of dockerhub. (#10166)
* Add variable to reset default docker registry
* fix bug in docker version control
2022-06-22 17:33:20 +08:00
Shilong Liu
77831f6d4b
[CI] Fix azp build rpc image targets. (#7976) 2021-06-25 14:31:09 +08:00
Shilong Liu
3bdd72163f
[CI] Fix azp targets for innovium platform (#7948)
There is no rule to build swi target. The correct target is *.bin.
2021-06-23 18:50:27 -07:00
xumia
2c22ab6735
[ci]: build rpc image for mellanox (#7905) (#7946)
Rename the sync_rpc_image to docker_syncd_rpc_image
Add a new parameter syncd_rpc_image to build sonic-mellanox-rpc.bin
2021-06-23 10:19:42 -07:00
Shilong Liu
33106c2b47
[CI] Adjust azp build artifacts and platform to keep same with Jenkins (#7702)
* adjust azp official build platform
* update azp official build
2021-05-27 10:35:06 +08:00
Shilong Liu
8bfb1fdcc9 [ci]: enable official build in release branch (#7603)
Signed-off-by: Shilong Liu <shilongliu@microsoft.com>
2021-05-24 18:34:07 +08:00
Shilong Liu
f3d3c94df7 remove unused file
Signed-off-by: Shilong Liu <shilongliu@microsoft.com>
2021-05-12 15:25:36 +08:00
xumia
0f27cdd388 Export the azure pipeline build id for SONiC version (#7406)
Improve the SONiC version, fix the "azure pipeline build id" part

<target branch name>-<pullrequest id>.<azure pipelines build id>-<merge commit id>
Example: master-7381.11668-43df5c87
2021-05-12 15:25:36 +08:00
xumia
7ece5de700 [ci]: Fix official build not existing issue (#7408)
When submitting a new official build for broadcom, vs, it prompts a error message, which says the job is not defined.
It was caused by the default option "[]", which is not empty, it is used as the jobGroups parameter.
2021-05-12 15:25:36 +08:00
xumia
a5a381df7e Improve the PR build version (#7381)
Why I did it
Improve the version of the Pull Request build by changing the local branch name.

How I did it
Change the default branch name merge to [target_branch_name]-[pullrequestid].

How to verify it
For official build, the version is not changed.
For pull request build, the version as below:
2021-05-12 15:25:36 +08:00
xumia
8ef37946cd [ci] Fix the boolean value case sensitive issue in Azure Pipelines (#7399)
Why I did it
Fix the boolean value case sensitive issue in Azure Pipelines

When passing parameters to a template, the "true" or "false" will have case sensitive issue, it should be a type casting issue.
To fix it, we change the true/false to yes/no, to escape the trap.

Support to override the job groups in the template, so PR build has chance to use different build parameters, only build simple targets. For example, for broadcom, we only build target/sonic-broadcom.bin, the other images, such as swi, debug bin, etc, will not be built.
2021-05-12 15:25:36 +08:00
Shilong Liu
ffdddf7346 [CI] Support 202012 branch generating version files for reproducible build (#7303)
for reproducible build azp

Signed-off-by: Shilong Liu <shilongliu@microsoft.com>
2021-05-12 15:25:36 +08:00
liushilongbuaa
14c79ee9f0 [CI] Fix pipeline template artifacts struct bug and cleanup bug
Signed-off-by: liushilongbuaa <shilongliu@microsoft.com>
2021-05-12 15:25:36 +08:00
xumia
d686a9a259 [ci] Fix no enough space issue in docker root in multi arch build (#7321)
Why I did it
Failed to build the centec-arm64 for no space in docker data root.

How I did it
Change to use the data root to the folder under /data.
See detail info about DOCKER_DATA_ROOT_FOR_MULTIARCH in the file Makefile.work.

How to verify it
Set the environment variable, then the /data used as docker root.
2021-05-12 15:25:36 +08:00
xumia
122ac7791a Fix the SONiC version starting with HEAD issue (#7319) 2021-05-12 15:25:36 +08:00
xumia
3653cb0d70 [ci] Fix the wrong build options issue (#7287)
Why I did it
Fix the wrong build options and improve display name for some tasks
1. Fix the wrong build architecture for arm64 and armhf
2. Fix the build timeout parameter
2021-05-12 15:25:36 +08:00
Shilong Liu
9ffc5466d0 [CI] Fix the wrong environment variable PLATFORM passing into the slave container issue (#7262)
* fix

* fix
2021-05-12 15:25:36 +08:00
Shilong Liu
2f794be816 [CI] Update sonic image official build template. (#7198)
* draft

* fix

* Update new-build-template.yml

* Update azure-pipelines-build.yml

* Update azure-pipelines-job-groups.yml

* fix

* fix

* draft

* fix

* fix

* fix

* fix

* fix

* fix

Signed-off-by: Shilong Liu <shilongliu@microsoft.com>

Co-authored-by: Sonic Automation <svc-acs@microsoft.com>
2021-05-12 15:25:36 +08:00
lguohan
2e7c3286da [ci]: get build logs when build fails (#7219)
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-05-12 15:25:36 +08:00
lguohan
cde88ce946 [ci]: gzip the vm image disk and memdmp (#7131)
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-05-12 15:25:36 +08:00