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.
Maybe this thread might help you:
https://community.atlassian.com/t5/Bitbucket-questions/Can-t-access-environment-variable/qaq-p/752865
When you run this locally do you see similar errors?
If not, can you share the relevant parts of your build.xml here?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.