Shilong Liu
086254bfd2
Fix azp pipeline file which is involved by former PR ( #8616 )
2021-08-30 10:49:52 +08:00
Shilong Liu
c44dbf0fe0
[build] Fix reproducible build issues ( #8548 )
...
* [build] Fix reproducible build issues
2021-08-26 18:21:18 +08:00
Shilong Liu
66089647b9
[CI] lengthen time limit for arm platform ( #8295 )
...
#### Why I did it
Building image for arm platform needs more time.
#### How I did it
lengthen time limit from 1.5 days to 2 days
2021-08-04 01:45:38 -07:00
Saikrishna Arcot
24c90cedc4
Enable sonic-slave-bullseye in Azure pipelines build
...
Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
2021-07-15 00:02:18 -07:00
Shilong Liu
31c5797015
Enable reproducible build in base docker image sonic-slave-* ( #8116 )
2021-07-09 14:51:17 +08:00
Shilong Liu
a3894b723e
[CI] Azp add cache-building job ( #7871 )
...
This job will make cache file more quickly than official build.
2021-06-23 18:44:40 -07:00
xumia
0b53a60412
[ci]: build rpc image for mellanox ( #7905 )
2021-06-20 23:12:25 -07:00
Shilong Liu
52c721887e
[CI] Add publish step in docker-sonic-mgmt azure pipeline ( #7902 )
2021-06-17 10:26:21 -07:00
Shilong Liu
df62e9cb22
[CI] Fix azp built docker-sonic-mgmt image ( #7890 )
...
UserID is different with the image built by Jenkins if we build docker-sonic-mgmt in sonicbld pool.
So we build this image in sonictest pool. There is a sonictmp user with UserID 1001.
This will make docker image same as the image built in Jenkins
2021-06-16 09:41:42 -07:00
Shilong Liu
aeeef2d382
[CI] Fix azp targets for innovium platform ( #7870 )
...
There is no rule to build swi target. The correct target is *.bin.
2021-06-15 16:38:02 -07:00
Myron Sosyak
9a7b83c693
[BFN] Add missed param for syncd-rpc build ( #7792 )
...
To fix syncd-rpc build for BFN paltform
2021-06-08 09:43:00 -07:00
Myron Sosyak
05dddea9da
[BFN] Enable syncd-rpc build ( #7646 )
...
Why I did it
To enable syncd-rpc for Barefoot build
How I did it
Set the flag
How to verify it
ENABLE_SYNCD_RPC=y make configure PLATFORM=barefoot
ENABLE_SYNCD_RPC=y make all
2021-06-02 20:01:35 +08:00
Shilong Liu
80fe4ed860
[ci]: enable official build in release branch ( #7603 )
...
Signed-off-by: Shilong Liu <shilongliu@microsoft.com>
2021-05-13 07:54:11 -07:00
Guohan Lu
a2d33a2a37
[ci]: enable sonic-slave scheduled build on 202012
...
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-05-05 07:33:31 -07:00
Guohan Lu
853c214951
[ci]: set -ex for official build to exit on any build failures
...
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-05-03 12:31:52 -07:00
Guohan Lu
aeb73ad529
[ci]: increase official build to 12 hours
...
10-hour limit is not enough to finish several jobs.
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-05-03 12:31:31 -07:00
Guohan Lu
e1ff8b6ad6
[ci]: change timeout to 36 hours for armhf/arm64 build
...
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-05-02 09:55:15 -07:00
Shilong Liu
a10542e894
[CI] Add Bldenv pipeline files ( #7458 )
...
Add 3 pipeline files:
- pipeline for build docker image sonic-slave-[buster|jessie|stretch] for amd64/armhf/arm64, and push to ACR(sonicdev-microsoft.com)
- pipeline for build docker image sonic-mgmt, and push to ACR
- pipeline for cleaning dpkg cache which are created more than 30 days.
Co-authored-by: lguohan <lguohan@gmail.com>
2021-04-30 16:35:38 -07:00
xumia
45d59a59ef
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-04-23 17:58:46 +08:00
xumia
4bf118006a
[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-04-22 21:56:09 -07:00
xumia
e8582ac6b1
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-04-23 10:24:00 +08:00
xumia
39d877c1ad
[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-04-23 09:26:16 +08:00
Shilong Liu
8874a2aff4
[CI] Support 202012 branch generating version files for reproducible build ( #7303 )
...
for reproducible build azp
Signed-off-by: Shilong Liu <shilongliu@microsoft.com>
2021-04-21 11:06:15 -07:00
liushilongbuaa
d7fc384b6f
[CI] Fix pipeline template artifacts struct bug and cleanup bug
...
Signed-off-by: liushilongbuaa <shilongliu@microsoft.com>
2021-04-21 09:03:11 -07:00
xumia
ac99b8fee8
[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-04-15 14:32:08 +08:00
xumia
f5703825e3
Fix the SONiC version starting with HEAD issue ( #7319 )
2021-04-14 21:18:43 +08:00
xumia
7df4c0ad7c
[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-04-12 07:43:06 +08:00
Shilong Liu
1c220d923a
[CI] Fix the wrong environment variable PLATFORM passing into the slave container issue ( #7262 )
...
* fix
* fix
2021-04-09 07:36:53 +08:00
Shilong Liu
dcb9ef3d44
[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-04-08 07:05:31 +08:00
lguohan
9fa5a6135c
[ci]: get build logs when build fails ( #7219 )
...
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-04-03 09:28:56 -07:00
lguohan
dbc7a45c73
[ci]: gzip the vm image disk and memdmp ( #7131 )
...
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-03-25 10:15:21 -07:00
xumia
75e3f3a74f
Fix the upgrade SONiC package version PR title ( #7000 )
...
[ci] Make the title of the PR to upgrade SONiC package versions better
2021-03-11 08:50:29 -08:00
xumia
d3040bd804
Add azure pipelines for reproducible build ( #6870 )
...
* Add azure pipelines for reproducible build
* Add always build flag for upgrade build
* Fix the build version ubuntu-20.04
2021-02-25 13:44:58 +08:00
Guohan Lu
e9b27f9450
[ci]: add official build for mellanox
...
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-02-24 15:12:27 -08:00
lguohan
7475b98eda
[ci]: build vs image in official build ( #6768 )
...
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-02-11 23:34:05 -08:00
Guohan Lu
4c8bff6c3c
[ci]: improve cleanup by claim ownership in source folder
...
the added change was accidentally removed in commit 092f5378
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-02-10 23:36:32 -08:00
lguohan
ed9a14f0af
[ci]: move cleanup before archive artifacts ( #6749 )
...
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-02-10 11:45:07 -08:00
Guohan Lu
c56cd004a5
[ci]: add centec-arm64 to offical build
...
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-02-09 01:25:18 -08:00
lguohan
d843d6ed12
[ci]: restructure repo clean up to make it robust ( #6716 )
...
restructure repo clean up to make it robust
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-02-08 08:06:36 -08:00
Guohan Lu
54abfd560a
[ci]: fix the build template error
...
proper bool comparision
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-02-07 02:09:44 -08:00
lguohan
2a66e80deb
[ci]: add marvel armhf official build ( #6707 )
...
- [ci]: add default values to build template
- [ci]: add marvel armhf official build
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-02-06 16:58:15 -08:00
Guohan Lu
b4fc842b70
[skip ci]: disable trigger for official build
...
official build only use scheduled build
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-02-06 11:33:30 -08:00
Guohan Lu
f5b24d8b27
[ci]: rename official-broadcom to official-build.yml
...
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-02-06 10:17:47 -08:00
liushilongbuaa
23381e6d01
[ci]: Add yaml for azure pipeline official build ( #6588 )
...
**- Why I did it**
To support nightly build for master branch
**- How to verify it**
confirm from azure pipeline page.
2021-02-05 15:38:25 -08:00
lguohan
dbfdab7c4e
[ci]: add t1-lag testbed ( #6619 )
...
introduce run-test template
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-01-31 19:47:10 -08:00