bitbucker pipeline test result does not match local pipeline test

Jie Li February 21, 2018

I always use the same command to test pipeline locally before I push my code to bitbucket. But recently, after I pushed my code to bitbucket, the pipeline test shows some failed test while I already tested successfully on my own computer. I'm not able to reproduce the failed test on my computer to find out the reason. Since I use the same pipeline testing command, what may differ from my pc to bitbucket online pipeline? Is bitbucket testing use cache which may cause this problem? Thanks.

1 answer

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 27, 2018

Hi Jie,

When you're testing your code locally, as you running it inside of a Docker container?

All builds in Pipelines are run inside of Docker containers, so perhaps there is an environment dependency that isn't installed on your build environments.

There are instructions here on how to run an environment similar to Pipelines with Docker: https://confluence.atlassian.com/bitbucket/debug-your-pipelines-locally-with-docker-838273569.html

If you're still running into errors afterwards, can you paste in the errors you're seeing here.

Thanks,

Phil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events