Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

bitbucket pipeline fails while phpunit tests pass

dimaash
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 5, 2017 edited

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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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
atlassian, jira cloud certification, managing jira projects, jira project administration, jira cloud exam, atlassian certification, agile project management, jira workflows, jira permissions, jira training, jira cloud skills, atlassian learning

Become a Certified Jira Service Project Expert 🦸🏻‍♂️

Validate your expertise in managing Jira Service Projects for Cloud. Master configuration, optimize workflows, and manage users seamlessly. Earn global 🗺️ recognition and advance your career as a trusted Jira Service management expert.

Get Certified! ✍️
AUG Leaders

Atlassian Community Events