For the complete documentation index, see llms.txt. This page is also available as Markdown.

Start a CI Build Automatically or Manually

The CI Jobs screen is best viewed when the zoom setting is set to 80% on your Chrome/Firefox browser.

Overview

The following articles describe how to trigger a new build for your CI Job created in AutoRABIT.

Prerequisites

  • Users must have permission to access the CI Job Results page.

  • The account owner or admin can assign this permission under Admin > Roles by enabling the required permission in the role configuration.


Trigger a new Build

  1. Navigate to the CI Job Results screen.

  2. This screen lists all CI Jobs for which builds have been triggered.

  1. Jobs with deployments display the icon: , while validated-only jobs show:

  2. Use the Select Job dropdown to choose your CI job.

  1. If no builds exist yet, you'll see: "No builds found for this job. Please trigger a new build for results." Click Build Now.

  1. If previous builds exist, click Build Now to trigger a new build.

  1. The build initiation screen will differ depending on whether your CI Job is configured with ALM.


ALM-configured CI Job

ALM-integrated CI Jobs display ALM work item information from the source version control branch.

ALM integration panel showing work items
  • Commit: Displays work items committed to the source branch.

ALM work items from commits
  • Merge: Displays work items merged into the source branch.

ALM work items from merges

Important Note:

  1. ALM Label Type: Commit: If a label is selected, results show all commits regardless of status.

  2. If no label is selected, all committed and merged revisions matching the CI Job configuration will be packaged. This applies to scheduled CI Jobs as well.


Without ALM-configured CI Job

CI Jobs without ALM integration show the following build input screen:

  • Enter a Title and optional Comments

  • Choose Deployment Type:

    • Deploy: Executes a full deployment to destination org or branch.

    • Validate only: Runs validations without deployment.

Additional Options:

  1. Run Code Coverage On Destination

    • Enabled if test execution is configured in the CI Job.

    • Generates Apex test coverage reports.

  2. Enable Rollback For Deployment

    • Enabled if Rollback was selected in the CI Job's Deploy section.

  3. Ignore Warnings

    • Allows deployment to continue despite warnings.

  • Use the Notes field to enter optional information.

  • Click Trigger Build to validate and execute the build.

Important Notes:

  • The Validate only deployment type does not run test cases.

  • Avoid editing CI Jobs while a build is in progress to prevent job failure. Abort the build if edits are necessary.

  1. Upon triggering, you will be redirected to the CI Job Results page, where build reports are available.


For the following Pull Request events, AutoRABIT triggers a build:

Validation Details:

  • Editing and committing a pull request triggers the CI job as expected.

  • When a pull request is edited, GitHub marks it accordingly, and AutoRABIT builds are triggered upon commit synchronization.

Webhook Delivery Screenshot:

Webhook event delivery log from GitHub

Webhook Configuration Screenshot:

Webhook settings for GitHub repository integration

FAQs

Is there a way to prepare/validate a deployment ahead of time and schedule ARM to execute it later?

Option 1: Scheduled CI job

ARM can schedule a CI job to deploy to Production during your approved maintenance window. For example, the job runs automatically at 11:00 p.m. on Saturday, so the Release Manager does not need to log in. There are two things to be aware of. This is a fresh deployment execution, so any configured Apex tests run again during the off-hours window. The job also builds from the branch at the moment it fires, so it deploys whatever is on the branch at 11:00 p.m. rather than what was reviewed earlier in the day.

Option 2: Quick Deploy through the API

If the requirement is to validate during business hours and then reuse that same Salesforce validation later, ARM has a Quick Deploy API for CI jobs. The API is POST /cijobs/v1/triggerquickdeploy/{jobname}/{buildnumber}. It uses Salesforce deployRecentValidation, so the tests do not run again. Your existing scheduler, such as Control-M or another cron-based scheduler, can call it during the approved window. The call needs the token header, a Content-Type: application/json header, and an empty JSON body. There are two limitations. The Salesforce validation must be less than 10 days old, and that limit is fixed rather than configurable. Quick Deploy also exists in the Deployment module, but it runs from the ARM screen only and is not on the API today, so an external scheduler cannot trigger it. Only CI job Quick Deploy is available over the API.

The approval flow

ARM already has a deployment approval flow if the main requirement is to hold a deployment until an approver authorizes it. That still needs a person to release it, so it does not give you automated execution at a set time.

Last updated

Was this helpful?