We are building a docker image, and our docker files looks like this:
//Dockerfile stuff
RUN npm run swag
//Dockerfile stuff
So when building the image, this is the output of that particular step:
Step 8/10 : RUN npm run swag
---> Running in bf120585a9e9
//Logs about failed test
The command '/bin/sh -c npm run swag' returned a non-zero code: 2
This causes the build to stop, but the pipeline continues and finish successfully.
I checked out that `echo $?` is 2 when ran immediately after the docker build command.
Why would the pipeline not break?
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.