Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-28188

StringIndexOutOfBoundsException when no root cause for the build

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • envinject-plugin
    • None
    • 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.

            gbois Gregory Boissinot
            damien_coraboeuf Damien Coraboeuf
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: