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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.