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

bitbucket pipeline fails while phpunit tests pass

dimaash May 5, 2017

Hello,

I would like to know why a pipeline would fail even though phpunit passes tests.

Please take a look at the screenshot attached.


Thanks,

Kind Regards,

Dmitry.

bitbucket_pipeline_fail.jpg

 bitbucket_pipeline_fail2.jpg

 

1 answer

0 votes
SebC
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 22, 2017

Hey Dmitry, pipeline uses the return code of your scripts to determine if it was successful; 0 is good, anything else is an error.

 

If you run just your phpunit tests, do they return a 0 exit code?

dimaash May 23, 2017

Hi Sebastian,

Thanks for your reply.

You are correct, it was a deployment script that was running

on a remote machine that was failing and causing a pipeline to fail.

The issue is now resolved and my pipelines complete correctly.

 

Thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events