-
Bug
-
Resolution: Fixed
-
Blocker
-
None
-
gradle-plugin from v1.39 (PR#150), Jenkins v2.332.3
-
-
v1.39.2
The following warning is raised several times on each restart of the Jenkins server since the update of the gradle-plugin in v1.39 :
WARNING h.p.g.i.GradleBuildScanInjection#inject: Error: HOME is not set
On my Jenkins server, I don't need Gradle, but this gradle-plugin is required by Artifactory plugin.
I tried to set the HOME environment variable, then the JENKINSGRADLEPLUGIN_BUILD_SCAN_OVERRIDE_HOME environment variable, but the warning is still reported in the system logs when the Jenkins server starts.
Is there a solution to fix this warning?
Thanks in advance
We are using kubernetes-plugin and this spams the log as soon as we try to start any pod.
It also seems to have a big performance impact as we had to downgrade to 1.38 otherwise pods did not start up in time anymore. There is no way of preventing copying/removing of the init script. Environment variables are read from offline nodes. What also comes into my mind is how this behaves on nodes with more than one executor (yes we also have that) and having one config enabling init script and the other one disabling it.
Sporadically I also see:
Currently there is no opt-out of this handling in any form, we do not use the gradle-plugin but we use gradle. We use artifactory-plugin and we do not want the init script handling at all as modification to HOME would affect many builds on the same nodes.