What Is Continuous Integration (CI) ? JWT salesforce dx with jenkins Check below blog post for all URL amitsalesforce... #Jenkins #SFDX #SalesforceDX #JWT @ApexHours #CI #Salesforce
Hi Amit, what is the replacement of "Custom Tools" plugin as it is not available now in the market place? It doesn't enable although it is downloaded. Please provide alternate plugin/process to test this approach. Thanks
Hello Amit, "custom tools" plugin is not avaiable as in I cannot provide the "salesforce cli" path and so I build fails. Is there any alternative approach to start a build
Hi Amit, Thank you for your video. Can you make a video for Salesforce org metadata validation along with same Jenkinsfile that your are used for this video.
can anyone or Amit pls help me to understand my doubt is : when we have mutliple sandboxes like qa,sit uat,prod staging then how can create environment variable for all of them and how can we store in environemnt variable section.. is there any alternate way to store all the variables in jenkins it selft instead of system environment variable. in real time we will go with only for validation,testing and deployment how can we achieve in that scenario with many environment variables
Bit confused can i have some clarity on this.. salesforce dx will be used to maintain version control and why again GitHub using to store the data can we connect scratch org directly with Jenkins and from Jenkins to production ... Like Boomi Api connectors can you please clarify my doubt totally confused Amith
Hi Amit, I would like to know when is a good practice or good moment to user DX+GitHub+Jenkins in a development process, can you post a use case and standard process flow of how to apply this new way of working? I'm coming from console dev to intellij and want to leverage my skills with this new LWC with CD/CI Please it would be very helpful for many people
Hi Amit, I followed the steps and the build was completed. But the deployment status is not there in the salesforce org. The error I am getting is could not find the ContactController Class in the zipped directory. Please help me with this
Hi Amit , Thanks For sharing the info I'm unabel to create jenkins job due to below screenshots , it says "Jenkins is going to shut down" and Loading spinner is running , Please help me
Hi Amit Thanks for the vedio. Your vedio gave clear picture of what I am looking for but I do have some queries and I hope you would find time to address them. 1. Without authorisation is there any alternative to connect Salesforce and Jenkins? Like just using some access token and instance url to enable connection 2. What can be other possible tools used in pipeline stages like code analysis, testing, artifact deploy as extension for your current ci/cd pipeline? Thanks in advance
Hi Amit, Thanks for the video. Could you please post another video for setting up CICD with git(preferably Bitbucket) pipeline deploying the code into develop branch(deploying into Integration sandbox), QA git branch deploys to QA sandbox, UAT git branch deploys to UAT sandbox, Release git branch deploys to Stage fullcopy sandbox and then finally master deploys into Prod Org? for time being, can you share me the blog link where I can follow the steps and try for multibranch-build-scan(sonarqube)test-deploy? Thanks in advance :)
Hi Amit..Thnaks for your video. I followed all steps.I am getting below error. Could you please help I have added Custom Toolbelt and build the pipeline, getting belwo error '"C:\Program Files\Salesforce CLI\bin"' is not recognized as an internal or external command, operable program or batch file. [Pipeline] error [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // withCredentials [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ERROR: hub org authorization failed Finished: FAILURE Please note I am able to authenticate using cmd
The issue is resolved. Build is successful but i see deployment failure in salesforce. *** Deploying with SOAP *** Job ID | 0Af5j00000Ke58FCAR The deploy request did not complete within the specified wait time [0 minutes]. To check the status of this deployment, run "sfdx force:mdapi:deploy:report"
Hi Amit , Thanks for detail information . I followed all the steps which you mentioned in the post but still I am getting below error ERROR: No tool named toolbelt found
Hi Amit, Thanks for this great video. I followed the same steps but, I get an error inside 'Configure' page of Jenkins. Failed to connect to repository : Error performing git command: git.exe ls-remote -h. I saw you also got this message but, it disappeared suddenly foryou.
Can any one help me out i am getting the below error @Salesforce Apex Hours ERROR: Could not find credentials entry with ID 'c7f4ffd4-6de8-4ace-93c2-a5f9e7a6308b' but my JWT credential is this '2e61a668-cc94-4d43-95cb-807e2e206eaf' in the environment variables
C:\openssl\bin>openssl x509 -req -sha256 -days 365 -in server.csr -signkey server.key -out server.crt Loading 'screen' into random state - done server.csr: No such file or directory
Fantastic . This is very helpful. Thanks for sharing the information
I am glad its helped you
Very good and helpfull..
Thanks for your feedback @Niraj
Helpful. Thanks
Glad it was helpful!
Amazing man.
Help us spread the word!
Hi Amit, what is the replacement of "Custom Tools" plugin as it is not available now in the market place? It doesn't enable although it is downloaded. Please provide alternate plugin/process to test this approach. Thanks
Not sure need to check/
If we have multiple sanboxes like sit uat etc. Then do we have to set/create environment variables for all of them?
You can configure the same in Jenkins itself.
Hello Amit, "custom tools" plugin is not avaiable as in I cannot provide the "salesforce cli" path and so I build fails. Is there any alternative approach to start a build
Forgot to mention Amit, we want to use the setup for non-scratch orgs.
base on your script
Hi Amit, Thank you for your video. Can you make a video for Salesforce org metadata validation along with same Jenkinsfile that your are used for this video.
can anyone or Amit pls help me to understand my doubt is : when we have mutliple sandboxes like qa,sit uat,prod staging then how can create environment variable for all of them and how can we store in environemnt variable section.. is there any alternate way to store all the variables in jenkins it selft instead of system environment variable.
in real time we will go with only for validation,testing and deployment how can we achieve in that scenario with many environment variables
Bit confused can i have some clarity on this.. salesforce dx will be used to maintain version control and why again GitHub using to store the data can we connect scratch org directly with Jenkins and from Jenkins to production ... Like Boomi Api connectors can you please clarify my doubt totally confused Amith
Hi Amit, Can you help me with how to create the client id of any sample metadata, it would be a great help.
Hi Amit, I would like to know when is a good practice or good moment to user DX+GitHub+Jenkins in a development process, can you post a use case and standard process flow of how to apply this new way of working? I'm coming from console dev to intellij and want to leverage my skills with this new LWC with CD/CI
Please it would be very helpful for many people
Check below post. amitsalesforce.blogspot.com/2019/04/azure-devops-with-salesforce-devops-for.html
I hope this will help you
Hi Amit,
I followed the steps and the build was completed. But the deployment status is not there in the salesforce org. The error I am getting is could not find the ContactController Class in the zipped directory. Please help me with this
Please check your package.xml file and Zip Folder. That should contain ContactController class.
Or please update package.xml file
For Ec2 based jenkins where i can store environment variable.
Hi Amit , Thanks For sharing the info I'm unabel to create jenkins job due to below screenshots , it says "Jenkins is going to shut down" and Loading spinner is running , Please help me
Hi Amit, this really helped me a lot, can i ask you to show something using DX and scratch org and CI together? Thank you
Sure. We will try soon
Amit, can you help me to solve the issue of "ERROR: No tool named toolbelt found on build" , Thanks
We provided the solution on blog post
Hi Amit
Thanks for the vedio. Your vedio gave clear picture of what I am looking for but I do have some queries and I hope you would find time to address them.
1. Without authorisation is there any alternative to connect Salesforce and Jenkins? Like just using some access token and instance url to enable connection
2. What can be other possible tools used in pipeline stages like code analysis, testing, artifact deploy as extension for your current ci/cd pipeline?
Thanks in advance
Great video Amit! appreciated your efforts!! Can you confirm if it is same setup fro Bitbucket ?
Yes It will almost same
Hi Amit, Thanks for the video. Could you please post another video for setting up CICD with git(preferably Bitbucket) pipeline deploying the code into develop branch(deploying into Integration sandbox), QA git branch deploys to QA sandbox, UAT git branch deploys to UAT sandbox, Release git branch deploys to Stage fullcopy sandbox and then finally master deploys into Prod Org? for time being, can you share me the blog link where I can follow the steps and try for multibranch-build-scan(sonarqube)test-deploy? Thanks in advance :)
Hi Amit..Thnaks for your video. I followed all steps.I am getting below error. Could you please help
I have added Custom Toolbelt and build the pipeline, getting belwo error
'"C:\Program Files\Salesforce CLI\bin"' is not recognized as an internal or external command,
operable program or batch file.
[Pipeline] error
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: hub org authorization failed
Finished: FAILURE
Please note I am able to authenticate using cmd
The issue is resolved. Build is successful but i see deployment failure in salesforce.
*** Deploying with SOAP ***
Job ID | 0Af5j00000Ke58FCAR
The deploy request did not complete within the specified wait time [0 minutes].
To check the status of this deployment, run "sfdx force:mdapi:deploy:report"
You need to setup the toolbelt
The git file needs to be updated by you.I tried to fork and deploy but still same issue. I tried your demo git file the deployment succeeded 🙂
Hi Amit , Thanks for detail information . I followed all the steps which you mentioned in the post but still I am getting below error
ERROR: No tool named toolbelt found
You need to add Custom Tool "toolbelt" in Global Tool Configuration
@@apexhours Yes , I did that but not sure whether it is correct or not . I think that part is missing in your video right ?
@@vijaykumarsingh1662 Can you please share the screen shot of your configuration with my by email amit.salesforce21@gmail.com
@@apexhours Thanks Amit . I got my mistake . thanks for your help
@@vijaykumarsingh1662 Let us know if you need any other help.
Hi Amit, Thanks for this great video. I followed the same steps but, I get an error inside 'Configure' page of Jenkins. Failed to connect to repository : Error performing git command: git.exe ls-remote -h. I saw you also got this message but, it disappeared suddenly foryou.
Can you please share the full error
@@apexhours This is the error screenshot. If you can guide us here. It would be great.:)
Can any one help me out i am getting the below error @Salesforce Apex Hours
ERROR: Could not find credentials entry with ID 'c7f4ffd4-6de8-4ace-93c2-a5f9e7a6308b'
but my JWT credential is this '2e61a668-cc94-4d43-95cb-807e2e206eaf' in the environment variables
Hi i am getting static analysis code error what needs to be done
Please show the github folder structure
will cover in next video
It is not creating server.crt file. What is the issue?
what error you are getting
It resolved but Jenkins job failed with error “no tool named tool belt found” please help me to resolve it?
ERROR: No tool named toolbelt found
Please tell me how to configure
giving ERROR: No tool named toolbelt found.
I have restarted system many time still giving same error.
You need to setup toolbelt
after reset my laptop variable is still null.
can salesforce admin learn slaesforce devops
No tool named toolbelt found
You need to define one
C:\openssl\bin>openssl x509 -req -sha256 -days 365 -in server.csr -signkey server.key -out server.crt
Loading 'screen' into random state - done
server.csr: No such file or directory
19760:error:0D0BF041:asn1 encoding routines:ASN1_item_dup:malloc failure:./crypto/asn1/a_dup.c:104:
problems making Certificate Request