1

I am trying to set up the Git Repo for our Salesforce instance, we are trying to use VS Code. This is my first time setting up and never used the ANT migration tool. We do manual Change set deployment from one instance to other. Most of the article I found online on the Version Controlling are based on ANT scripts and they recommend having got handle on the ANT Script. As I have not used it before I wanted to understand for setting up CI/CD pipeline in Azure do we need to use ANT scripts? I tried getting the metadata using the VS Code and I get the ant-salesforce.jar file an all.

Can anyone recommend if I am getting the metadata using VS Code how can I set up the Pipelines without ANT migration Tools or scripts

2 Answers 2

3

I recommend you check Salesforce CLI than the ANT migration toolkit.

ANT migration toolkit requires some scripting while Salesforce CLI makes it easier as it provides a lot of utilities to make metadata migration easier.

Check the below short video on how to retrieve metadata from org using the VSCode Extension pack for Salesforce and Salesforce CLI.

Also for using Azure pipeline check this helpful guide

3
  • Can we still use the sfdx & Salesforce CLI for Version Controlling and the Pipelines without starting to use the Scratch orgs?
    – user81642
    Mar 25, 2021 at 17:29
  • Yes for sure! Scratch org is not required! Mar 25, 2021 at 17:46
  • Can you please help salesforce.stackexchange.com/questions/341235/… here I did try to setup the pipeline and can suggest if I am missing something
    – user81642
    Apr 23, 2021 at 5:29
3

Ant isn't the preferred method in modern development. The new design uses Salesforce DX instead. There's a lot of blogs out there (like this one, not mine), plus tools like sfpowerscripts (again, not mine). You just need to do some research.

4
  • Can we still use the sfdx & Salesforce CLI for Version Controlling and the Pipelines without starting to use the Scratch orgs?
    – user81642
    Mar 25, 2021 at 17:29
  • @user81642 Yes, we use it that way now (but not with Azure).
    – sfdcfox
    Mar 25, 2021 at 20:57
  • Just last question, do you all set up a System Administartor service account seperately for authenticating the Connected App Setup in Salesforce for Devops Process
    – user81642
    Mar 31, 2021 at 14:44
  • @user81642 We don't have a CI/CD set up currently, but if we did, we would likely have a dedicated service account for the CI/CD.
    – sfdcfox
    Mar 31, 2021 at 15:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.