Running a Job
Prerequisites
- Ensure FirmwareCI is set up by following the steps in the Installation, Repository Setup, and Configuration guides.
What is a Job?
A job is part of a job-request executing tests in a workflow on a Device Under Test (DUT) with a matching label. Results are reported to your FirmwareCI dashboard. When integrations like the GitHub App are enabled, results also appear on the relevant commit or pull request.
Each job requires two inputs:
- Workflow: Defines which tests to run
- Binaries: Maps template keys to file paths (e.g.,
BINARY=~/Downloads/coreboot.romorOS_IMAGE=~/Downloads/ubuntu.img)
The template keys correspond to variables in your test files, allowing you to specify which binaries are used during test execution. You can run all tests in a workflow or select a subset. Optional metadata like commit hashes can be included.
Job Triggers
We offer three different methods to trigger a job:
Command-Line Interface: Using the
fwci jobcommand.Interactive Mode: This mode prompts you to select the workflow and specify whether to run all tests or only a subset. If only one workflow is available, it will be automatically selected.
Non-Interactive Mode: The CLI can also operate non-interactively by providing the workflow name as the second argument:
Caution: You might be required to provide the project-name as well, if the workflow-name is not unique across projects.
Integrations: Integration with version control systems (GitHub or GitLab).
Getting Your User/Org Token:
The
TOKENis required for all CI/CD integrations. To obtain it:- Log in to the FirmwareCI web UI
- Navigate to your profile
- Click the tokens tab inside the profile page
- Create a new user token or ask you administrator if an org token is required.
- Use this Token in your CI/CD configuration (see examples below)
Referencing Your Workflow:
Every CI/CD integration requires you to identify which workflow to run. There are two ways to do this — use whichever fits your setup best:
Variable Description WORKFLOW_NAMERecommended. The human-readable name of the workflow (e.g. coreboot-tests). Easy to read in CI configs. The name must match exactly and be unique within the project.WORKFLOW_ID(Deprecated — still supported.) The internal ULID of the workflow. Does not change when the workflow is renamed, but makes CI configs harder to read and requires copying the ID from the UI. WORKFLOW_IDandWORKFLOW_NAMEare mutually exclusive — set exactly one.Getting Your Workflow Name:
- Log in to the FirmwareCI web UI
- Navigate to your workflow
- The name shown in the header is the value to use for
WORKFLOW_NAME
GitHub Action:
GitLab CI/CD:
Gerrit CI/CD: Please refer to Gerrit Integration Guide.
Cross-Repository Workflow Configuration
By default, the action resolves the workflow by looking up the project that matches the repository where the CI pipeline runs. This works well when the FirmwareCI configuration (.firmwareci/) lives in the same repository as the triggering pipeline.
However, a common pattern is to keep FirmwareCI configuration in a dedicated infrastructure repository (e.g. my-org/firmware-tests) while triggering jobs from a product repository (e.g. my-org/my-product). In this case the action cannot find the workflow automatically, because the trigger repository does not have a matching FirmwareCI project.
Use PROJECT_LINK to tell the action which project to look up the workflow in.
Getting Your PROJECT_LINK:
- Log in to the FirmwareCI web UI
- Navigate to the Workflows page
- Find the project that contains your workflow — the value to use (in
instance/org/repoformat) is shown next to the project name and can be copied with the button beside it
| Value format | When to use |
|---|---|
github.com/org/repo | FirmwareCI config is on GitHub (works from any CI platform) |
gitlab.com/namespace/name | FirmwareCI config is on GitLab.com (works from any CI platform) |
custom.host/namespace/name | FirmwareCI config is on a self-hosted GitLab instance (no https:// required) |
https://custom.host/namespace/name | Same as above, with explicit scheme |
org/repo | Shorthand: infers the platform from the CI environment (GitHub → GitHub, GitLab → GitLab.com) |
PROJECT_LINKonly affects workflow resolution. Back-reporting (commit statuses, PR checks) always targets the repository that triggered the pipeline — this is unchanged.
Token Requirements
When using PROJECT_LINK, verify that all tokens have the required scopes for both the trigger repository and the project referenced by PROJECT_LINK:
GitHub:
- The FirmwareCI GitHub App must be installed in the organization that owns the workflow project (i.e.
my-orginmy-org/firmware-tests), not just the trigger repository. - The
GITHUB_INSTALLATION_IDmust correspond to the installation in the workflow project’s organization. Set it explicitly if the trigger repo and the workflow project belong to different organizations.
GitLab:
- The
GITLAB_TOKEN(or the token stored in the FirmwareCI integration) must have at leastread_repositoryscope on the repository specified inPROJECT_LINK. - For self-hosted instances (
https://gitlab.example.com/...), ensure the token is valid for that instance and not scoped to a different GitLab URL.
Example — GitHub Action, config in a different GitHub repo:
Example — GitLab CI/CD, config on a self-hosted GitLab instance:
Example — GitLab CI/CD, referencing a GitHub project:
- REST API: Making HTTP requests to trigger jobs. For further information, refer to FirmwareCI API Documentation.
Backreporting
Backreporting ensures that test results from FirmwareCI are automatically communicated back to your version control system. We support backreporting for both GitHub, GitLab & Gerrit. Jobs can be initiated from any repository, not limited to the integration source, allowing you to trigger tests across platforms (e.g., GitHub and GitLab).
GitHub Backreporting
For GitHub, FirmwareCI provides an official GitHub App that can be installed in your repository. This app automatically reports:
- Pull Requests: Adds test result comments directly on the PR.
- Default Branch Commits: Updates the commit status with test results.
Installation & Setup
- Install the FirmwareCI GitHub App.
- Grant it access to the repositories where you want backreporting enabled.
- Once a job is triggered through the CI, it will report back into this repository.
GitLab Backreporting
For GitLab, users need to manually provide an access token for FirmwareCI to authenticate and post test results. The results are reported as:
- Commit Comments: Test status is added as a comment and status to the commit.
- Merge Requests: Adds results as a comment and status on the MR.
Setup Instructions
Create a Gitlab access token (select one method):
Option 1: User Access Token
- Navigate to your Gitlab account settings
- Select “Access Tokens” in the left navigation panel
- Generate a new token with the required scopes:
api,read_repository
Option 2: Project Access Token
- Access your Gitlab project repository
- Navigate to Settings > Access Tokens
- Create a project access token with minimum
developerrole permissions and bothapiandread_repositoryscopes
- Integrate the repository using the following command:
Visit the webpage of your project.
Scroll down to the Webhook Settings.
Add the webhook as shown and save.
Note: The secret token for the webhook will be provided upon request. Please contact the FirmwareCI team to obtain your specific webhook token.
Default-Webhook-URL:
Gerrit Backreporting
Please refer to Gerrit Integration Guide.
Linking Back to Job Triggers
For details on how to trigger a job, refer to the Job Triggers section.




