We are working on implementation of ci/cd for 2nd generation package. Using CLI we want to:
- Create scratch org and push the source from the branch to the scratch org.
- Create package version from the branch source.
Is it possible?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
we can after a trigger on branch...
let the pipeline run:
sfdx force:org:create -s -f config/project-scratch-def.json -a
wait for the scrach org to the created and once done let the pipeline run...
I would strongly recommend using the jenkinsfile sample: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ci_jenkins_code.htm
Hope this helps!!