create_build
Create a build on AlmaLinux Build System for selected platforms and packages, with options for branches, tags, or SRPM URLs.
Instructions
Create a new build on ALBS. Requires JWT token.
Platforms and allowed architectures are fetched dynamically from ALBS. Use get_platforms to see available options.
For EPEL builds (SRPMs from dl.fedoraproject.org/pub/epel/), the tool automatically applies EPEL-specific flavors and defaults arch to x86_64_v2.
Args: platform: Target platform (single). Use get_platforms to see available options. platforms: List of target platforms to build on (e.g. ["AlmaLinux-8", "AlmaLinux-9"]). Can be used alone or combined with platform. At least one must be provided. packages: List of package names (for git/branch) or SRPM URLs (for from_srpm). For from_tag: use "pkg_name tag_name" format or just "tag_name". At least one of packages or git_urls must be provided. git_urls: List of custom Git repository URLs to build from (e.g. ["https://github.com/user/repo.git"]). Use for repos outside git.almalinux.org/rpms. The branch parameter sets the git ref. For from_tag, use "url tag_name" format. Cannot be used with from_srpm. branch: Git branch to build from (e.g. "a8", "c9s"). from_tag: Build from git tags instead of branch. from_srpm: Build from source RPM URLs. tags: Explicit tags for each package when from_tag=True (must match packages length). arch_list: Architectures to build. Default: all for the platform (x86_64_v2 for EPEL builds). skip_tests: Disable %check phase by adding --define "__spec_check_template exit 0;" to mock definitions. add_epel_dist: Extract .elN dist suffix from each package name/URL and set it as a per-task mock definition: dist=".elN.alma_altarch". Only works with from_tag or from_srpm. Recommended for EPEL-altarch builds. beta: Enable beta flavor. secureboot: Enable SecureBoot signing. nosecureboot: Override secureboot requirement for SB packages. excludes: Space-separated packages to exclude from mock. definitions: Dict of mock definitions, e.g. {"dist": ".el9"}. linked_builds: Build IDs to link. flavors: Additional flavor names. with_opts: Mock --with options. without_opts: Mock --without options. modules: Modules to enable, e.g. ["nodejs:18"]. independent_tasks: When True, disables the per-platform sequential task chain so packages build independently / in parallel within each platform (the default ALBS behavior chains task N's start on task N-1's completion). Applied to every platform entry in the payload. Default: False.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| beta | No | ||
| tags | No | ||
| branch | No | ||
| flavors | No | ||
| modules | No | ||
| excludes | No | ||
| from_tag | No | ||
| git_urls | No | ||
| packages | No | ||
| platform | No | ||
| arch_list | No | ||
| from_srpm | No | ||
| platforms | No | ||
| with_opts | No | ||
| secureboot | No | ||
| skip_tests | No | ||
| definitions | No | ||
| nosecureboot | No | ||
| without_opts | No | ||
| add_epel_dist | No | ||
| linked_builds | No | ||
| independent_tasks | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |