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

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

XMLWordPrintable

    • 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.

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

              Created:
              Updated: