diff --git a/src/main/java/org/datadog/jenkins/plugins/datadog/apm/JavaConfigurator.java b/src/main/java/org/datadog/jenkins/plugins/datadog/apm/JavaConfigurator.java index 0139611c..d6f20d3a 100644 --- a/src/main/java/org/datadog/jenkins/plugins/datadog/apm/JavaConfigurator.java +++ b/src/main/java/org/datadog/jenkins/plugins/datadog/apm/JavaConfigurator.java @@ -147,7 +147,7 @@ private static Map getEnvVariables(DatadogTracerJobProperty t variables.put("MAVEN_OPTS", PropertyUtils.prepend(envs, "MAVEN_OPTS", tracerAgent)); variables.put("SBT_OPTS", PropertyUtils.prepend(envs, "SBT_OPTS", tracerAgent)); variables.put("ANT_OPTS", PropertyUtils.prepend(envs, "ANT_OPTS", tracerAgent)); - variables.put("GRADLE_OPTS", PropertyUtils.prepend(envs, "GRADLE_OPTS", "-Dorg.gradle.jvmargs=" + tracerAgent)); + variables.put("GRADLE_OPTS", PropertyUtils.prepend(envs, "GRADLE_OPTS", tracerAgent)); String proxyConfiguration = getProxyConfiguration(tracerConfig, node); if (proxyConfiguration != null) {