From 77f7b10589c603747e195ce5cc3453278a4ba73b Mon Sep 17 00:00:00 2001 From: Nikita Tkachenko Date: Mon, 15 Jul 2024 17:40:59 +0200 Subject: [PATCH] Try setting an env var --- Jenkinsfile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 154d6ae6..0d111fcf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,4 +8,18 @@ def configurations = [ [ platform: "linux", jdk: "11", jenkins: recentLTS ], ] -buildPlugin(configurations: configurations) \ No newline at end of file +pipeline { + agent any + environment { + JAVA_TOOL_OPTIONS = '-javaagent:non-existing-file.jar' + } + stages { + stage('Build Plugin') { + steps { + script { + buildPlugin(configurations: configurations) + } + } + } + } +}