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

Jenkins CLI is not reporting a failure error code when builds fail

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • cli
    • Windows Server 2003,
      Java Version 1.6.0_29,
      Jenkins and Jenkins-CLI 1.442

      Jenkins CLI is not reporting a failure error code when builds fail.

      This is a problem when you call one build from another in the command line. In console output you see

      Stuff happens...
      C:\JenkinsNew\jobs\project1\workspace>java -jar "C:\JenkinsNew\jenkins-cli.jar" -s "http://jenkins:80" build "project2" -s
      Completed project2 #27 : FAILURE
      Stuff happens...

      Then the build is passed, and erroneous emails are sent.

          [JENKINS-12082] Jenkins CLI is not reporting a failure error code when builds fail

          mark lemay created issue -
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 142354 ] New: JNJira + In-Review [ 175670 ]
          lacostej made changes -
          Component/s Original: batch-task-plugin [ 15505 ]

            kohsuke Kohsuke Kawaguchi
            riteofwhey mark lemay
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: