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

Java String Index Out of Range

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • git-plugin
    • None
    • Jenkins 1.612, Ubuntu Server 14.04

      I have a project that is configured to git fetch from Atlassian Stash repository. It then runs buildr to compile it. There are many times that the whole process fails with the following:

      FATAL: String index out of range: -1
      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      at java.lang.String.substring(String.java:1911)
      at hudson.plugins.git.GitChangeSet.isoDateFormat(GitChangeSet.java:179)
      at hudson.plugins.git.GitChangeSet.parseCommit(GitChangeSet.java:118)
      at hudson.plugins.git.GitChangeSet.<init>(GitChangeSet.java:89)
      at hudson.plugins.git.GitChangeLogParser.parseCommit(GitChangeLogParser.java:73)
      at hudson.plugins.git.GitChangeLogParser.parse(GitChangeLogParser.java:57)
      at hudson.plugins.git.GitChangeLogParser.parse(GitChangeLogParser.java:44)
      at hudson.plugins.git.GitChangeLogParser.parse(GitChangeLogParser.java:25)
      at hudson.scm.ChangeLogParser.parse(ChangeLogParser.java:57)
      at hudson.model.AbstractBuild.calcChangeSet(AbstractBuild.java:894)
      at hudson.model.AbstractBuild.getChangeSet(AbstractBuild.java:862)
      at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:349)
      at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:346)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:687)
      at hudson.model.Run.execute(Run.java:1743)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:89)
      at hudson.model.Executor.run(Executor.java:240)

      Sometimes the process fails immediately after it checks out the revision. Other times, it will finish completely but then display this output at the end and 'fail' even though it completed.

            ndeloof Nicolas De Loof
            jagwirez Taylor K
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: