Forums

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

Incremental Deployment for Salesforce with pipelines

adarh_1 March 25, 2019

Hi 
I am using Bit bucket pipelines for Salesforce Code migration. Every time i do the commit pipelines will deploy the whole components again, Instead I want to deploy the files in the last commit, I had used the Depth option but it didn't worked out. Please help.

1 answer

0 votes
Jeroen De Raedt
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 26, 2019

Hi @adarh_1 ,

could you provide some more specifics on how exactly your build is configured? 

Pipelines starts a build by cloning the entire repository for the specific revision. If you want to get hold of the specific changes of a commit, check this thread for some ideas: https://stackoverflow.com/questions/17563726/how-to-see-the-changes-in-a-git-commit 

adarh_1 March 27, 2019

Hi Jeroen,

I have just used the depth command in the pipeline with the value as 1 and it did not work, Below is my pipeline YML file.

image:
name: mklinski/salesforce
clone:
depth: 1 # include the last commit

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

 

I have setup the pipelines, added the environment variables and  setup the yml file as above.

Please let me know if i have missing any thing  and I am using Bit Bucket pipelines for Deployment in salesforce.

Mr.Singh
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!
January 24, 2024

@adarh_1 I m also getting error that SFDC_USERNAME,SFDC_PASS,SFDC_TOKEN are Invalid But I have added correct values in Variables.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events