Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

BUILD FAILED

Avesh Lakha August 25, 2021

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
Atlassian Team members are employees working across the company in a wide variety of roles.
August 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
AUG Leaders

Atlassian Community Events