diff --git a/Jenkinsfile b/Jenkinsfile index f509a171afb..d6a22c2dc95 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -85,6 +85,10 @@ pipeline { } stage('Lint'){ options { skipDefaultCheckout() } + environment { + // See https://github.com/elastic/beats/pull/19823 + GOFLAGS = '-mod=readonly' + } steps { makeTarget(context: "Lint", target: "check") }