sonic-buildimage/scripts
Yevhen Fastiuk 52f6dd65a3
Improve remote fetch (#12795)
### Why I did it
To fix those errors:
One:
```
Connecting to urm.nvidia.com (urm.nvidia.com)|*.*.*.*|:443... connected.
GnuTLS: Error in the pull function.
Unable to establish SSL connection.
Error 4
make[1]: Leaving directory '/sonic/src/smartmontools'
[ target/debs/bullseye/smartmontools_6.6-1_amd64.deb ]
```
Second:
```
Get:90 https://debian-mirror-url buster/main amd64 librrd-dev amd64 1.7.1-2 [284 kB]
Get:91 https://debian-mirror-url buster/main amd64 psmisc amd64 23.2-1+deb10u1 [126 kB]
Get:92 https://debian-mirror-url buster/main amd64 python-smbus amd64 4.1-1 [12.2 kB]
Get:93 https://debian-mirror-url buster/main amd64 python3.7-dev amd64 3.7.3-2+deb10u3 [510 kB]
Get:94 https://debian-mirror-url buster/main amd64 python3-dev amd64 3.7.3-1 [1264 B]
Get:95 https://debian-mirror-url buster/main amd64 python3-smbus amd64 4.1-1 [12.5 kB]
Get:96 https://debian-mirror-url buster/main amd64 rrdtool amd64 1.7.1-2 [485 kB]
Fetched 122 MB in 12s (9976 kB/s)
E: Failed to fetch https://debian-mirror-url/pool/main/p/python-defaults/python2-minimal_2.7.16-1_amd64.deb  500  Internal Server Error [IP: *.*.*.* 443]
E: Failed to fetch https://debian-mirror-url/pool/main/f/fontconfig/fontconfig-config_2.13.1-2_all.deb  500  Internal Server Error [IP: *.*.*.* 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
The command '/bin/sh -c apt-get update &&       apt-get install -y          build-essential         python3-dev             ipmitool                librrd8                 librrd-dev              rrdtool                 python-smbus            python3-smbus           dmidecode               i2c-tools               psmisc                  libpci3' returned a non-zero code: 100
[ target/docker-platform-monitor.gz ]
Error 1
```

#### How I did it
Add retry mechanism to apt, wget, and curl hooks
2023-09-23 18:07:04 -07:00
..
j2cli [dockers] label SONiC Docker with manifest (#5939) 2021-04-26 13:51:50 -07:00
build_debian_base_system.sh [CI][doc][build] Trim script and sonic-slave-* folders files trailing blanks (#15161) 2023-05-24 09:25:12 -07:00
build_kvm_image.sh [CI][doc][build] Trim script and sonic-slave-* folders files trailing blanks (#15161) 2023-05-24 09:25:12 -07:00
build_mirror_config.sh Improve remote fetch (#12795) 2023-09-23 18:07:04 -07:00
collect_build_version_files.sh [CI][doc][build] Trim script and sonic-slave-* folders files trailing blanks (#15161) 2023-05-24 09:25:12 -07:00
collect_docker_version_files.sh [CI][doc][build] Trim script and sonic-slave-* folders files trailing blanks (#15161) 2023-05-24 09:25:12 -07:00
collect_host_image_version_files.sh [CI][doc][build] Trim script and sonic-slave-* folders files trailing blanks (#15161) 2023-05-24 09:25:12 -07:00
convert-pfx-cert-format.sh Simplify the function to covert pfx certificate (#5086) 2020-08-01 20:07:20 +08:00
dbg_files.sh Create the src archive in target/ when INSTALL_DEBUG_TOOLS=y (#3323) 2019-08-28 09:29:48 -07:00
docker_version_control.sh [build] Fix issues found in reproducible build. (#10407) 2022-03-31 13:07:46 +08:00
efi-sign.sh Add Secure Boot Support (#12692) 2023-03-14 14:55:22 +02:00
generate_buildinfo_config.sh [Build] Support Debian snapshot mirror to improve build stability (#13097) 2023-01-13 16:16:35 +08:00
populate_file_web_server.py [CI][doc][build] Trim script and sonic-slave-* folders files trailing blanks (#15161) 2023-05-24 09:25:12 -07:00
prepare_debian_image_buildinfo.sh [CI][doc][build] Trim script and sonic-slave-* folders files trailing blanks (#15161) 2023-05-24 09:25:12 -07:00
prepare_docker_buildinfo.sh [CI][doc][build] Trim script and sonic-slave-* folders files trailing blanks (#15161) 2023-05-24 09:25:12 -07:00
prepare_slave_container_buildinfo.sh [CI][doc][build] Trim script and sonic-slave-* folders files trailing blanks (#15161) 2023-05-24 09:25:12 -07:00
process_log.sh [build]: add SONIC_CONFIG_BUILD_LOG_TIMESTAMP to add timestamp in build log (#4269) 2020-03-21 14:21:26 -07:00
run_with_retry Fix sonic-slave-* build errors about sudo command not found (#13412) 2023-01-31 12:35:17 +02:00
secure_boot_signature_verification.sh [CI][doc][build] Trim script and sonic-slave-* folders files trailing blanks (#15161) 2023-05-24 09:25:12 -07:00
sign_image_dev.sh Add support for secure upgrade (#11862) 2023-06-26 12:04:40 +03:00
sign_image.sh [Secure Boot] Support to sign swi image (#4627) 2020-06-09 15:25:17 +08:00
signing_kernel_modules.sh [CI][doc][build] Trim script and sonic-slave-* folders files trailing blanks (#15161) 2023-05-24 09:25:12 -07:00
signing_secure_boot_dev.sh [CI][doc][build] Trim script and sonic-slave-* folders files trailing blanks (#15161) 2023-05-24 09:25:12 -07:00
versions_manager.py [CI][doc][build] Trim script and sonic-slave-* folders files trailing blanks (#15161) 2023-05-24 09:25:12 -07:00
wait_for_docker.sh [build]: wait up to 60 seconds for docker engine to start (#3067) 2019-06-22 14:40:05 -07:00