mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 22:30:23 +00:00
ci: CentOS CI networking is stable again, remove pull-loop
The for loop in Groovy does not work, but fortunately it seems that the CentOS CI network environment is stable again. Pulling container images is working as it did before. Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
parent
203b377137
commit
05f13b2b82
@ -38,28 +38,8 @@ def create_duffy_config() {
|
|||||||
// pulling from the destination registry.
|
// pulling from the destination registry.
|
||||||
//
|
//
|
||||||
// Images need to be pre-pushed into the source registry, though.
|
// Images need to be pre-pushed into the source registry, though.
|
||||||
//
|
|
||||||
// On occasion pulling images is not stable due to a broken proxy in the CI
|
|
||||||
// environment. For that, try pulling the image up to 10x.
|
|
||||||
def podman_pull(source, destination, image) {
|
def podman_pull(source, destination, image) {
|
||||||
def failed = null
|
|
||||||
|
|
||||||
for (int i in 0..9) {
|
|
||||||
try {
|
|
||||||
ssh "podman pull --authfile=~/.podman-auth.json ${source}/${image} && podman tag ${source}/${image} ${image} ${destination}/${image}"
|
ssh "podman pull --authfile=~/.podman-auth.json ${source}/${image} && podman tag ${source}/${image} ${image} ${destination}/${image}"
|
||||||
failed = null
|
|
||||||
break
|
|
||||||
}
|
|
||||||
catch (err) {
|
|
||||||
failed = err
|
|
||||||
// failed to pull image, but try again
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// if the last pull failed, throw the error
|
|
||||||
if (failed != null) {
|
|
||||||
throw failed
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
node('cico-workspace') {
|
node('cico-workspace') {
|
||||||
|
Loading…
Reference in New Issue
Block a user