https://confluence.atlassian.com/bitbucket/debug-your-pipelines-locally-with-docker-838273569.html
The above is all nice and well.
But how would one go about debugging the pipelines when one needs to access pipelines' environment variables?
At the moment I just duplicate a repo, do a bunch of pipelines runs on it and then manually transfer all the changes onto the original repo.
Clunky.
Not to mention that this chews up the pilines usage minutes which it doesn't have to while one is technically developing/testing pipelines.
Hi Maxim,
Indeed, as you use more features it starts to get a bit more complicated to use Docker to debug Pipelines locally.
In regards to environment variables, the best I can offer is to add them in as part of the Docker run command: https://docs.docker.com/engine/reference/commandline/run/#set-environment-variables--e---env---env-file
I acknowledge that this isn't the best approach if you have secrets in your environment variables.
We also have a feature request for a better debugging experience here, that may be relevant: https://bitbucket.org/site/master/issues/12824/allow-ssh-access-into-my-pipelines
If you have any other thoughts, feel free to share them or create a new feature request.
Thanks,
Phil
Hi Philip
Thank you for the response.
I appreciate the complexity of exposing Pipelines environment for debugging.
I voted for the "Allow SSH access into my Pipelines container" you quoted.
Looking forward to news in this space.
Thanks,
Maxim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.