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:

  1. Go to the New CI Job screen.

    New CI Job
  2. 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

  3. Navigate to the Deploy section.

  4. Check On Successful Deployment to enable post-deployment actions.

  5. Check Trigger Jenkins Job to enable Jenkins job execution upon success.

    Trigger Jenkins
  6. Fill in the required fields:

    • URL: Full Jenkins server URL Example: http://localhost:8080 or http://<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:

  1. Go to your Jenkins project configuration.

  2. In the General section, enable This project is parameterized.

  3. Click Add Parameter and choose your parameter type.

  4. Set the parameter name and default values.

  5. Click Save.

Your Jenkins job can now accept and process parameters passed from AutoRABIT.

Last updated

Was this helpful?