Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can I use BitBucket pipeline env variables in my code?

Like I have a code file which uses a env variable name PORT. In local I have to export it within system so everything work fines as it is able to access that variable.But I need to pass bitbucket pipeline env variable to be used in place of that how to do this.

 

 

1 answer

0 votes
Raul Gomis Atlassian Team Jan 16, 2020

Hi @devender Kumar ,

The pipelines default system variables and other configured variables (repository or account) should be available in your script to use when executing your pipeline. More details: https://confluence.atlassian.com/bitbucket/variables-in-pipelines-794502608.html

In local, you will need to export them as you are currently doing with PORT.

Regards, 

Raul

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket Pipelines

Bitbucket Pipelines Runners is now in open beta

We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...

3,761 views 64 20
Read article

Community Events

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

Events near you