From 1fb419681d9738d890e90e9ac7cd8e36cafc5d4d Mon Sep 17 00:00:00 2001 From: Dave Wallace Date: Mon, 3 May 2021 13:34:31 -0400 Subject: Retry VPP jobs if git clone fails. - Use naginator regular-expression to only retry builds when logs contain git clone failure message. Signed-off-by: Dave Wallace Change-Id: Icb18b7c287b0ccb9d47c7c4af216b3204a720291 --- jjb/global-macros.yaml | 9 +++++++++ jjb/vpp/docs.yaml | 1 + jjb/vpp/vpp.yaml | 9 +++++++++ 3 files changed, 19 insertions(+) diff --git a/jjb/global-macros.yaml b/jjb/global-macros.yaml index efa1e17c..b465d49c 100644 --- a/jjb/global-macros.yaml +++ b/jjb/global-macros.yaml @@ -738,6 +738,15 @@ - naginator: max-failed-builds: 1 +- publisher: + name: retry-build-on-git-clone-error + publishers: + - naginator: + max-failed-builds: 6 + progressive-delay-increment: 5 + progressive-delay-maximum: 180 + regular-expression: '.*Error cloning remote repo.*' + - publisher: name: robot-report publishers: diff --git a/jjb/vpp/docs.yaml b/jjb/vpp/docs.yaml index eac0bc46..f58ee2a4 100644 --- a/jjb/vpp/docs.yaml +++ b/jjb/vpp/docs.yaml @@ -517,4 +517,5 @@ - ../scripts/vpp/make-test-docs.sh publishers: + - retry-build-on-git-clone-error - fdio-infra-publish diff --git a/jjb/vpp/vpp.yaml b/jjb/vpp/vpp.yaml index ccd636bc..a49a6324 100644 --- a/jjb/vpp/vpp.yaml +++ b/jjb/vpp/vpp.yaml @@ -482,6 +482,7 @@ - ../scripts/vpp/commitmsg.sh publishers: + - retry-build-on-git-clone-error - fdio-infra-publish # [end] VPP-CHECKSTYLE-VERIFY JOB TEMPLATE @@ -551,6 +552,7 @@ - ../scripts/vpp/build.sh publishers: + - retry-build-on-git-clone-error - fdio-infra-publish # [end] VPP-VERIFY JOB TEMPLATE @@ -621,6 +623,7 @@ - ../scripts/vpp/debug-build.sh publishers: + - retry-build-on-git-clone-error - fdio-infra-publish # [end] VPP-DEBUG-VERIFY-PERIODIC JOB TEMPLATE @@ -701,6 +704,7 @@ - ../scripts/packagecloud_push.sh publishers: + - retry-build-on-git-clone-error - fdio-infra-publish # [end] VPP-MERGE JOB TEMPLATE @@ -767,6 +771,7 @@ - ../scripts/vpp/gcc-build.sh publishers: + - retry-build-on-git-clone-error - fdio-infra-publish # [end] VPP-GCC-VERIFY JOB TEMPLATE @@ -855,6 +860,7 @@ - robot-report: output-path: 'archives' + - retry-build-on-git-clone-error - fdio-infra-publish # [end] VPP-CSIT-VERIFY-DEVICE-PERIODIC JOB TEMPLATE @@ -942,6 +948,7 @@ - robot-report: output-path: 'archives' + - retry-build-on-git-clone-error - fdio-infra-publish # [end] VPP-CSIT-VERIFY-DEVICE-PERPATCH JOB TEMPLATE @@ -1039,6 +1046,7 @@ - robot-report: output-path: 'csit_current/0/' + - retry-build-on-git-clone-error - fdio-infra-publish # [end] VPP-CSIT-VERIFY-PERF JOB TEMPLATE @@ -1103,6 +1111,7 @@ # TODO: Add sending e-mail notifications to vpp-api-dev@lists.fd.io publishers: + - retry-build-on-git-clone-error - fdio-infra-publish # [end] VPP-CSIT-VERIFY-API-CRC JOB TEMPLATE # [end] JOB TEMPLATE DEFINITIONS -- cgit 1.2.3-korg