Forums

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

Debugging pipelines' environment variables

Maxim Leonov
Contributor
January 17, 2019

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.

1 answer

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 3, 2019

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 

Maxim Leonov
Contributor
February 4, 2019

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

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

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 Now
AUG Leaders

Atlassian Community Events