Forums

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

Unable to get environment variables in build script for Bitbucket pipelines

Diptiman Prusty
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 16, 2018

I have set a few environment variables for Bitbucket pipelines

I am trying to pass them to my ANT build script through the bitbucket-pipelines.yml

 

ant -buildfile Repository/build/build.xml deployEmptyCheckOnly -Dsf.username=$SB_USERNAME -Dsf.password=$SB_PASSWORD -Dsf.serverUrl=$SF_SERVERURL

 

But when I try to echo the same in my build script file it prints  

$SB_USERNAME rather than the value it has been set.

2 answers

0 votes
Alvar Hyvönen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 6, 2018
0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 5, 2018

When you run this locally do you see similar errors?

If not, can you share the relevant parts of your build.xml here?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events