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

Crash in Jenkins CLI when updating build result

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • cli
    • None
    • Ubuntu 13.04 64bit

      Command being run inside build script:

      java -jar jenkins-cli.jar set-build-result aborted

      Intermittently results in this crash:

      Exception in thread "main" java.lang.NegativeArraySizeException
      at hudson.cli.Connection.readByteArray(Connection.java:131)
      at hudson.cli.CLI.connectViaCliPort(CLI.java:243)
      at hudson.cli.CLI.<init>(CLI.java:134)
      at hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:72)
      at hudson.cli.CLI._main(CLI.java:469)
      at hudson.cli.CLI.main(CLI.java:384)

      Build is a matrix job if that makes any difference

          [JENKINS-22177] Crash in Jenkins CLI when updating build result

          Vlad Aginsky added a comment -

          I see this in my setup, v 1.550:
          java -jar /var/lib/jenkins/jenkins-cli.jar -s http://10.7.0.182:8080/ set-build-description some_txt 980 'GIT: e4e1681511df4548ac6365adad064b2818280833' --username name --password 'word'
          Exception in thread "main" java.lang.NegativeArraySizeException
          at hudson.cli.Connection.readByteArray(Connection.java:131)
          at hudson.cli.CLI.connectViaCliPort(CLI.java:243)
          at hudson.cli.CLI.<init>(CLI.java:134)
          at hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:72)
          at hudson.cli.CLI._main(CLI.java:469)
          at hudson.cli.CLI.main(CLI.java:384)
          Build step 'Execute shell' marked build as failure

          Vlad Aginsky added a comment - I see this in my setup, v 1.550: java -jar /var/lib/jenkins/jenkins-cli.jar -s http://10.7.0.182:8080/ set-build-description some_txt 980 'GIT: e4e1681511df4548ac6365adad064b2818280833' --username name --password 'word' Exception in thread "main" java.lang.NegativeArraySizeException at hudson.cli.Connection.readByteArray(Connection.java:131) at hudson.cli.CLI.connectViaCliPort(CLI.java:243) at hudson.cli.CLI.<init>(CLI.java:134) at hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:72) at hudson.cli.CLI._main(CLI.java:469) at hudson.cli.CLI.main(CLI.java:384) Build step 'Execute shell' marked build as failure

            Unassigned Unassigned
            nerd2 Sam Lancia
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: