Triggering Builds for your CI Job
Last updated
Last updated
The CI JOBS screen is best viewed when the zoom setting is set to 80% on your chrome/firefox browser.
The following articles talk about how to trigger a new build for your CI Job that you've created in AutoRABIT.
The users must have permission to access the CI Job Results page in order to trigger a build.
The account owner or admin can assign the required permission to the users by visiting the Admin > Roles tab and create a role with the above-mentioned permission enabled.
Go to the CI Job Results screen.
This screen will list all the CI Jobs for which the builds have already been triggered.
Select your CI job in the Select Job dropdown. The dropdown here allows switching between the CI Jobs available.
If there are no builds triggered yet, you get the notification as, "No builds found for this job. Please trigger a new build for results." Click on Build Now.
If the builds already exist and you wish to trigger another one, you can do so using the Build Now button.
The new build screen differs based on how your CI job is configured (with or without ALM configuration).
ALM configured CI Job
For CI jobs configured with ALM details, the following screens are displayed and you can find the ALM work item details configured to the source Version control branch here.
Commit: The ALM work items that are configured while committing to the selected source branch and meet the CI Job configuration will get fetched. All the available work item types, their status, and ALM data are displayed as per the workflow defined in the ALM system.
Merge: The ALM work items configured while merging to the selected source branch and meet the CI Job configuration will get fetched will get displayed.
Important Note:
For ALM Label Type as Commit: When you pick a work item in the dropdown, the result will show all commits regardless of the status configured.
If the user does not specify any label, all the committed and merged work item revisions will be packaged based on the CI job configuration. This scenario applies to scheduled CI jobs too.
Without ALM configured CI Job
For the CI jobs configured without ALM, the below screen will be displayed.
Under the Build inputs, enter the title of the build and add comments if any
Choose the Deployment Type i.e., Deploy (deploy the changes to the destination org/branch) or Validate only (validating before deploying the changes to the destination org).
Additional options:
Run Code Coverage On Destination: This option is visible only if the user has been enabled to run the apex text class when configuring their CI Job. This option generates the code coverage report which provides information about the apex tests that are run, the classes that are covered, and the assertions that have failed and provide a percentage of the code that is covered by the test execution.
Enable Rollback For Deployment: This option will enable the rollback function when running the deployment. This option will also be visible if the user has selected the Rollback option in the Deploy section while configuring their CI Job.
Ignore Warnings: This checkbox allows the metadata members to deploy even if warnings are encountered.
Add any additional information in the Notes section. However, this is optional.
Click on Trigger Build. It validates the user credentials and upon successful validations, the build gets triggered.
Important Notes:
Trigger Build does not run the test cases for Validate only deployment type.
It's best not to edit the CI jobs while the build progresses, which may lead to the failure of the job. Abort the build process if required to edit the CI jobs.
You'll be redirected to the CI Job Results page where you can view the detailed report for your build triggered.
Here is the validation detail:
When you edit the pull request and commit the change, the CI job is triggered as expected.
When you edit the pull request, it's marked as edited. Upon committing the pull request, it synchronizes and pushes as expected.
Refer to the screenshot below for webhook delivery:
The screenshot below refers to webhook configuration settings:
The CI Jobs deployed will havesymbols next to them and the one with only validated CI Jobs will havesymbols next to it.