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

Crash in Jenkins CLI when updating build result

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: cli
    • Labels:
      None
    • Environment:
      Ubuntu 13.04 64bit
    • Similar Issues:

      Description

      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

        Attachments

          Issue Links

            Activity

            Hide
            vladichko 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

            Show
            vladichko 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

              People

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

                Dates

                • Created:
                  Updated: