I having an issue with Bamboo using Docker to spin up a Python container install some packages then run unit tests.
I am using Bamboo YAML spec files for configuring the pipeline. In the Spec file I defined Docker to use the Python image at the plan level.
When the pipeline runs Bamboo spins up the Python container and runs the Build stage to install python packages, but for the Test stage Bamboo spins up another Python container that doesn't have my dependencies and tests fail.
I must be misunderstanding or doing something wrong. Any guidance or assistance would be much appreciated.
- Bamboo Spins up Python container
- pulls code
- install packages
- run tests
All inside the same isolated container.
Example Spec File:
name: py app testing
- Build environment:
- Test Ansible Role:
- pip install pytest
- pip install -e .
Hello @Patrick Peace
The behavior you see is expected. You defined two different stages, each stage has a different job. Each job will run in a fresh Docker container.
To avoid the issue you are facing you could:
I hope that clarifies the issue.
G’day Bamboo customers, The wait is almost over! We are in the final stages of work on the first release of Bamboo Data Center, our self-managed enterprise offering of Bamboo. This Data Center offe...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events