Skip to main content

Get Build Chroot

curl -X GET \
  "https://copr.fedorainfracloud.org/api_3/build-chroot/?build_id=12345&chrootname=fedora-40-x86_64"
Get information about a specific build chroot by build ID and mock chroot name.

Query Parameters

build_id
integer
required
Build ID
chrootname
string
required
Mock chroot name (e.g., “fedora-40-x86_64”)

Response

name
string
Chroot name
started_on
integer
Unix timestamp when chroot build started
ended_on
integer
Unix timestamp when chroot build ended
result_url
string
URL to build results directory
state
string
Build state for this chroot: “importing”, “pending”, “starting”, “running”, “succeeded”, “failed”, “canceled”, “skipped”

List Build Chroots

curl -X GET \
  "https://copr.fedorainfracloud.org/api_3/build-chroot/list?build_id=12345"
List all build chroots for a specific build with pagination.

Query Parameters

build_id
integer
required
Build ID
limit
integer
default:"100"
Number of items per page
offset
integer
default:"0"
Number of items to skip
order_type
string
default:"ASC"
Order direction (ASC or DESC)

Response

items
array
Array of build chroot objects (same structure as Get Build Chroot)
meta
object
Pagination metadata

Get Build Chroot Config

curl -X GET \
  "https://copr.fedorainfracloud.org/api_3/build-chroot/build-config?build_id=12345&chrootname=fedora-40-x86_64"
Get build configuration used for a specific build chroot.

Query Parameters

build_id
integer
required
Build ID
chrootname
string
required
Mock chroot name

Response

repos
array
List of base repository URLs used for this build
additional_repos
array
Additional repository URLs configured for the project
additional_packages
array
Additional packages installed in buildroot
with_opts
array
RPM —with options
without_opts
array
RPM —without options
memory_limit
integer
Memory limit in MB
timeout
integer
Build timeout in seconds
enable_net
boolean
Whether network access is enabled
is_background
boolean
Whether this is a background build
bootstrap
string
Bootstrap container mode
bootstrap_image
string
Bootstrap container image URL

Get Built Packages

curl -X GET \
  "https://copr.fedorainfracloud.org/api_3/build-chroot/built-packages?build_id=12345&chrootname=fedora-40-x86_64"
Get built packages (NEVRA dicts) for a given build chroot.

Query Parameters

build_id
integer
required
Build ID
chrootname
string
required
Mock chroot name

Response

Returns a dictionary containing package information with NEVRA (Name-Epoch-Version-Release-Architecture) details.
packages
array
Array of package objects with NEVRA information

Build docs developers (and LLMs) love