Update the BuildStreaM Catalog¶
Update the BuildStreaM catalog file to modify build specifications and trigger new pipeline runs.
Overview¶
The catalog_rhel.json file defines your build requirements, including
functional groups, architecture types, operating systems, and software
packages. Modifying this file triggers the independent build pipeline.
The root cadence_catalog_rhel.json is a separate input for the unified
cadence pipeline. Committing that file triggers image build, deployment,
restart, and validation in one pipeline. Periodic cadence operation updates it
only after RPM reconciliation detects package changes.
Prerequisites¶
Complete the following before you update the BuildStreaM catalog:
-
Deploy GitLab for BuildStreaM -- GitLab must be deployed and configured for BuildStreaM. See BuildStreaM.
-
No conflicting build pipeline -- The current GitLab configuration allows pipelines to run concurrently. Wait for a build using the same catalog or image resources to complete before committing another catalog change.
-
Catalog file location --
catalog_rhel.jsonis at the root of the managed GitLab project. Source catalog samples are available undersrc/main/samples/. Only a committed change to the rootcatalog_rhel.jsonautomatically selects the build pipeline.
Choose an authoring workflow¶
Use either of these workflows to prepare the catalog change:
- Manual authoring -- Edit
catalog_rhel.jsondirectly and follow the procedure on this page. - AI-assisted authoring -- Select the
SKILL.mdfile for the required operation and invoke it through an approved coding agent. See Use AI-Assisted Catalog Authoring Skills.
Review AI-generated content and approve any proposed catalog edit before it is applied. Then follow the same validation, Git review, and BuildStreaM pipeline procedure used for a manually authored catalog.
Procedure¶
-
Go to the GitLab project URL:
GitLab project URLhttps://<gitlab_host>:<gitlab_https_port>/root/<gitlab_project_name> -
Navigate to Code → Repository.
-
Locate the catalog to update:
- Use
catalog_rhel.jsonfor an independent image build. - Use
cadence_catalog_rhel.jsononly when you intend to start the unified cadence pipeline.
- Use
-
Modify the
catalog_rhel.jsonfile to define your build requirements. Follow the lowercase field names and structure in the release-matched samples undersrc/main/samples/. For an AI-assisted workflow, copy only the reviewed and validated result into this root file; editing a source sample or a file undercatalog/does not trigger the build pipeline. For a new revision of the same catalog family, retainidentifierand incrementversion. -
Commit the catalog changes. GitLab selects the pipeline associated with the changed root catalog.
Verification¶
After committing the catalog changes, verify that the update was successful:
-
Navigate to Build → Pipelines in the GitLab project.
-
Confirm that GitLab selected the expected pipeline: build for
catalog_rhel.json, or cadence forcadence_catalog_rhel.json. -
Verify that the commit appears in the commit history with a successful status.
Note
Compare the catalog with the release-matched samples under
src/main/samples/ and the
Catalog JSON reference.
Validate its structure, references, package sources, and business rules
before committing it. Invalid entries cause catalog processing to fail.
Warning
Unique Catalog Revision Required
BuildStreaM identifies a catalog revision as
<identifier>-v<version>. This composite value must be unique. Keep the
identifier when revising the same catalog family and increment
version. Use a new identifier only for a different catalog family.
Reusing an existing composite value causes the Parse Catalog stage to
fail.
Next steps¶
- AI-Assisted Catalog Authoring -- Select and invoke a catalog-authoring skill
- Execute Build Pipeline -- Detailed build pipeline operations
- Execute Deploy Pipeline -- Detailed deploy pipeline operations
- Automate Build and Deployment with Cadence -- Unified cadence pipeline operations
- Cleanup Operations -- Remove old Image Groups
- Retry Pipelines -- Retry failed pipeline operations
Troubleshooting¶
Parse-Catalog stage failing
Compare the catalog with the catalog staged in the managed GitLab project and
the release-matched samples under src/main/samples/. Confirm that
schema_version is supported and that <identifier>-v<version> has not
already been used. Then correct the reported structure or reference error and
commit a new catalog revision.
The wrong pipeline started
Confirm which root catalog was committed. catalog_rhel.json selects build;
cadence_catalog_rhel.json selects cadence. A catalog under catalog/ does
not select either pipeline.