-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Major
-
Component/s: envinject-plugin
-
Environment:EnvInject 1.91.2
When a build has no root cause (possible when firing the job programmatically), the code at org.jenkinsci.plugins.envinject.service.BuildCauseRetriever#buildCauseEnvironmentVariables produces a StringIndexOutOfBoundsException because the substring method is applied to an empty string.