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.
1. Error logs
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 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