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 539a4db commit 06c7c70Copy full SHA for 06c7c70
Jenkinsfile
@@ -270,6 +270,13 @@ def withBeatsEnv(Map args = [:], Closure body) {
270
fi''')
271
}
272
try {
273
+ // Add more stability when dependencies are not accessible temporarily
274
+ // See https://github.com/elastic/beats/issues/21609
275
+ // retry/try/catch approach reports errors, let's avoid it to keep the
276
+ // notifications cleaner.
277
+ if (cmd(label: 'Download modules to local cache', script: 'go mod download', returnStatus: true) > 0) {
278
+ cmd(label: 'Download modules to local cache - retry', script: 'go mod download', returnStatus: true)
279
+ }
280
body()
281
} finally {
282
if (archive) {
0 commit comments