Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

swager test fails with error code 2 but pipeline successful

Oscar Navarrerete Estévez June 10, 2021

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?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events