function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
BHASKAR GANGULYBHASKAR GANGULY 

automate deployment through jenkins pr

Hi,

i am trying to enable Continuous integration and delivery for one of my projects with salesforce DX,.My requirement is whenever a push happens in Github it should connect to jenkins.As part of continuos integration i want to authorize devhub,create the scratch org,push the source code to scratch org,test apex classes and then deploy the code in some other target org. I was able to do all the steps till test apex classes. My confusion is how to deploy the source code to some other target org as i don't want to deploy the code to dev hub org.Do i need to set up JWT for the target org as well along with the connected app and extra set of environment variables. Please guide me here. Please find below the github repository for the working jenkins file. https://github.com/bganguly1984/Jenkinsdemo/blob/newb/Jenkinsfile

Thanks,
Bhaskar