Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,363,594
Community Members
 
Community Events
168
Community Groups

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.

 https://tinyurl.com/ydk5wpw3


Below is my bitbucket-pipelines.yml code

image:
name: abhisheksaxena7/salesforcedockerimg
pipelines:
branches:
feature/**:
- step:
script:
- ant -buildfile build/build.xml deployEmptyCheckOnly -Dsfdc.username=$SFDC_USERNAME -Dsfdc.password=$SFDC_PASS$SFDC_TOKEN -Dsfdc.serverurl=https://$SFDC_SERVERURL
master:
- step:
script:
- 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.

-Dsfdc.password=$SFDC_PASS$SFDC_TOKEN

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.

Regards,
Mark C

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events