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

Build does not fail if docker build fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • None
    • Jenkins ver. 1.607, plugin version 0.15

      If your docker build fails the jobs will still succeed.

      We see in the console output:

      time="2015-05-19T21:13:57+01:00" level=info msg="The command [/bin/sh -c failed command returned a non-zero code: 1" 

      But then

      Finished: SUCCESS

      Steps to reproduce

      Build this dockerfile:

      FROM ubuntu
      RUN exit 1
      

      Expected Results

      The build should fail

      Actual Results

      The build succeeds.

      I would expect this to cause us to stop building, I also wouldn't expect us to push and tag the image.

            michaelneale Michael Neale
            andy Andy Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: