Jenkins
What is Jenkins?
Jenkins is an open-source Continuous Integration server developed in Java that helps automate parts of the software development process. It supports the full development lifecycle, including:
Building
Testing
Documenting
Deploying
How to Trigger a Jenkins Job in CI/CD
You can configure Jenkins to trigger jobs automatically after a successful deployment in a CI job within AutoRABIT.
Steps:
Go to the New CI Job screen.
New CI Job Choose a CI Job type from:
Deploy SFDX source from Version Control
Deploy from Salesforce Org
Deploy from Salesforce Org with a Version Control backup
Deploy from Version Control
Install an Unlocked Package from a Version Control Branch
Navigate to the Deploy section.
Check On Successful Deployment to enable post-deployment actions.
Check Trigger Jenkins Job to enable Jenkins job execution upon success.
Trigger Jenkins Fill in the required fields:
URL: Full Jenkins server URL Example:
http://localhost:8080
orhttp://<hostname>:8080
Jenkins URL Job Name: Name of the Jenkins project (e.g.,
HelloWorld
)Job Name Job URL: Relative job path Example:
job/HelloWorld
Job URL User ID: Jenkins user triggering the job
User ID API Token: Found under Profile > Configure in Jenkins
API Token Build Parameters (Optional): Define build parameters and values. To add multiple parameters, click the plus
+
icon.Parameters
Important Note:
Ensure Jenkins allows URL parameter injection.
Steps:
Go to your Jenkins project configuration.
In the General section, enable This project is parameterized.
Click Add Parameter and choose your parameter type.
Set the parameter name and default values.
Click Save.
Your Jenkins job can now accept and process parameters passed from AutoRABIT.
Last updated
Was this helpful?