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

Issue with docker-build-publish-plugin --- build failed, but success is reported

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      One of my docker application failed to install in docker and due to that the build failed. But the jenkins job continued to run and reported success.

      Attachments:
      1. Error logs
      2. Dockerfile
      3. Jenkins job config

      When I run docker build from command line, it returns as below, which is same as that in the jenkins console log.
      ==================
      extconf failed, exit code 1

      Gem files will remain installed in /usr/local/lib/ruby/gems/2.2.0/gems/snappy-0.0.11 for inspection.
      Results logged to /usr/local/lib/ruby/gems/2.2.0/extensions/x86_64-linux/2.2.0-static/snappy-0.0.11/gem_make.out
      INFO[0316] The command [/bin/sh -c buildDeps=' autoconf bison gcc libbz2-dev libgdbm-dev libglib2.0-dev libncurses-dev libreadline-dev libxml2-dev libxslt-dev make g++ '; set -x && apt-get update && apt-get install -y --no-install-recommends $buildDeps nodejs npm && gem install franz --no-rdoc --no-ri && apt-get purge -y --auto-remove $buildDeps && apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*] returned a non-zero code: 1
      ==================

        Attachments

          Issue Links

            Activity

            Show
            csanchez Carlos Sanchez added a comment - Fixed in https://github.com/jenkinsci/docker-build-publish-plugin/pull/19
            Hide
            mgireesh05 Gireesh Kumar added a comment -

            Thanks Carlos Sanchez!

            Show
            mgireesh05 Gireesh Kumar added a comment - Thanks Carlos Sanchez!
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Carlos Sanchez
            Path:
            src/main/java/com/cloudbees/dockerpublish/DockerBuilder.java
            http://jenkins-ci.org/commit/docker-build-publish-plugin/61e65974700c2ea31619782b32a3b27cac83edf0
            Log:
            JENKINS-27970 Build doesn't fail even if docker build does

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Carlos Sanchez Path: src/main/java/com/cloudbees/dockerpublish/DockerBuilder.java http://jenkins-ci.org/commit/docker-build-publish-plugin/61e65974700c2ea31619782b32a3b27cac83edf0 Log: JENKINS-27970 Build doesn't fail even if docker build does
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Carlos Sanchez
            Path:
            src/main/java/com/cloudbees/dockerpublish/DockerBuilder.java
            http://jenkins-ci.org/commit/docker-build-publish-plugin/cf6e4a204bc5f04672d9d6d6807de06c442ac65a
            Log:
            Merge pull request #19 from carlossg/JENKINS-27970

            JENKINS-27970 Build doesn't fail even if docker build does

            Compare: https://github.com/jenkinsci/docker-build-publish-plugin/compare/9bf9e37055f1...cf6e4a204bc5

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Carlos Sanchez Path: src/main/java/com/cloudbees/dockerpublish/DockerBuilder.java http://jenkins-ci.org/commit/docker-build-publish-plugin/cf6e4a204bc5f04672d9d6d6807de06c442ac65a Log: Merge pull request #19 from carlossg/ JENKINS-27970 JENKINS-27970 Build doesn't fail even if docker build does Compare: https://github.com/jenkinsci/docker-build-publish-plugin/compare/9bf9e37055f1...cf6e4a204bc5

              People

              Assignee:
              csanchez Carlos Sanchez
              Reporter:
              mgireesh05 Gireesh Kumar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: