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?