-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
linux redhat 9, openjdk 17, jenkins 2.492.1
there is an error at the start of jenkins and when i try to build i have an error that probably is for the same problem.
This is at the start of jenkins
feb 18, 2025 2:39:58 P. M. ADVERTENCIA hudson.plugins.gradle.injection.DevelocityComputerListener onOnline
Invocation of onOnline failed for java.lang.NullPointerException: Cannot invoke "java.util.Map.size()" because "map" is null at java.base/java.util.TreeMap.putAll(TreeMap.java:314) at hudson.slaves.EnvironmentVariablesNodeProperty.buildEnvVars(EnvironmentVariablesNodeProperty.java:87) at hudson.model.Computer.buildEnvironment(Computer.java:1190) at PluginClassLoader for gradle//hudson.plugins.gradle.injection.DevelocityComputerListener.onOnline(DevelocityComputerListener.java:58) at jenkins.model.Jenkins.<init>(Jenkins.java:1017) at hudson.model.Hudson.<init>(Hudson.java:102) at hudson.model.Hudson.<init>(Hudson.java:87) at hudson.WebAppMain$3.run(WebAppMain.java:249)
This is when i try to build a project
[EnvInject] - Loading node environment variables.
FATAL: Cannot invoke "java.util.Map.size()" because "m" is null
java.lang.NullPointerException: Cannot invoke "java.util.Map.size()" because "m" is null
at java.base/java.util.HashMap.putMapEntries(HashMap.java:495)
at java.base/java.util.HashMap.putAll(HashMap.java:783)
at PluginClassLoader for envinject//org.jenkinsci.plugins.envinject.service.EnvironmentVariablesNodeLoader.gatherEnvVarsForNode(EnvironmentVariablesNodeLoader.java:68)
at PluginClassLoader for envinject//org.jenkinsci.plugins.envinject.EnvInjectListener.loadEnvironmentVariablesNode(EnvInjectListener.java:78)
at PluginClassLoader for envinject//org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironment(EnvInjectListener.java:42)
at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:617)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:486)
at hudson.model.Run.execute(Run.java:1833)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
at hudson.model.ResourceController.execute(ResourceController.java:101)
at hudson.model.Executor.run(Executor.java:446)
hey jnavarrete !
We are looking into the issue, I'll keep you posted regarding the status.
Would you, please, provide the following information in the meantime:
1) Version of the Jenkins Gradle Plugin you're using.
2) The configuration of the Develocity Injection. I assume you have it enabled, so would be good to know which options are specified.
Did you get this error after the upgrade or on a fresh installation?
Thanks!