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

adding properties files in pipelines

I have a python script that uploads the build artifacts to onedrive path and set of env variables that defines path for uploading which are often changing, so i have written a properties file so that i can change the properties file and need not change the script always.

i tried to call the properties file but it didnt work, can anyone suggest a way.

Thanks in advance.

mybitbucket-pipelines.yml :-

image: python 3.5.1

- step:
- pip install requests
- bash ./gradlew build
- python $


in my 

i defined like this : 


and that path was defined in properties file


1 answer

0 votes

Do you have experience accessing properties from a file in python?  Without seeing your whole script, it would need to use a fs handler to create an object representing the file and read it.

Alternately you can use the contents of the file to set environment variables (which would still need to be explicitly read by python script)

Once you get it working locally it will behave the same in pipelines.

Suggest an answer

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

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

123 views 2 4
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