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

I am trying to achieve Salesforce CI and CD Using Bitbucket Pipelines but when I am running the pipeline then I am getting the below error message.

Below is my bitbucket-pipelines.yml code

name: abhisheksaxena7/salesforcedockerimg
- step:
- ant -buildfile build/build.xml deployEmptyCheckOnly -Dsfdc.username=$SFDC_USERNAME -Dsfdc.password=$SFDC_PASS$SFDC_TOKEN -Dsfdc.serverurl=https://$SFDC_SERVERURL
- step:
- ant -buildfile build/build.xml deployCode -Dsfdc.username=$SFDC_USERNAME -Dsfdc.password=$SFDC_PASS$SFDC_TOKEN -Dsfdc.serverurl=https://$SFDC_SERVERURL
I have reviewed many articles in the community but none of them resolved the issue. I  have passed the correct user id and PW in the variable.

1 answer

0 votes
Mark C Atlassian Team Aug 31, 2021

Hi @Avesh Lakha

Thank you for reaching out to the community.

To be honest, I'm not really that familiar with Salesforce CI/CD.
However, based on the error message in the screenshot, it is referring to an authentication issue.

For this, I noticed that in your ant command, you're appending 2 environment variables for the flag -Dsfdc.password.


Would it be possible for you to confirm if that's expected or you should only use either $SFDC_PASS or $SFDC_TOKEN?

Let me know how it goes.

Mark C

Suggest an answer

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

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,450 views 4 7
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