We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81dc892 commit 0e19f76Copy full SHA for 0e19f76
Jenkinsfile
@@ -269,6 +269,13 @@ def withBeatsEnv(Map args = [:], Closure body) {
269
fi''')
270
}
271
try {
272
+ // Add more stability when dependencies are not accessible temporarily
273
+ // See https://github.com/elastic/beats/issues/21609
274
+ // retry/try/catch approach reports errors, let's avoid it to keep the
275
+ // notifications cleaner.
276
+ if (cmd(label: 'Download modules to local cache', script: 'go mod download', returnStatus: true) > 0) {
277
+ cmd(label: 'Download modules to local cache - retry', script: 'go mod download', returnStatus: true)
278
+ }
279
body()
280
} finally {
281
if (archive) {
0 commit comments