summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2021-05-03 13:34:31 -0400
committerDave Wallace <dwallacelf@gmail.com>2021-05-03 13:34:31 -0400
commit1fb419681d9738d890e90e9ac7cd8e36cafc5d4d (patch)
treee4d7f081ad7800334edeb49791bbfd5db3ed33e5
parent0818f2515442113c0562a1d107d684f07cf8c7e9 (diff)
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 <dwallacelf@gmail.com> Change-Id: Icb18b7c287b0ccb9d47c7c4af216b3204a720291
-rw-r--r--jjb/global-macros.yaml9
-rw-r--r--jjb/vpp/docs.yaml1
-rw-r--r--jjb/vpp/vpp.yaml9
3 files changed, 19 insertions, 0 deletions
diff --git a/jjb/global-macros.yaml b/jjb/global-macros.yaml
index efa1e17..b465d49 100644
--- a/jjb/global-macros.yaml
+++ b/jjb/global-macros.yaml
@@ -739,6 +739,15 @@
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:
- robot:
diff --git a/jjb/vpp/docs.yaml b/jjb/vpp/docs.yaml
index eac0bc4..f58ee2a 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 ccd636b..a49a632 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