Commit graph

92 commits

Author SHA1 Message Date
Tomas Kopecek
4845ce3a92 flake8 fix 2024-11-12 16:07:28 -05:00
Mike McLean
41c7cb7f89 provide user for scm policy check 2024-11-01 10:07:26 -04:00
Neal Gompa
a5dd795043 kiwi: Add support for overriding version and releasever
This allows for kiwi descriptions that are compatible across
multiple targets to be easily used without needless modifications.

Additionally, it allows for custom values when preparing milestone
releases without needlessly modifying the descriptions.
2024-08-26 10:02:43 -04:00
Tomas Kopecek
dd594826f2 Don't use buildroot repo by default 2024-08-26 14:28:38 +02:00
Tomas Kopecek
b13d481d56 kiwi: option for not using buildroot repo
Related: https://pagure.io/koji/issue/4062
2024-08-26 14:28:13 +02:00
Neal Gompa
694ac41483 kiwi: Only add buildroot repo if user repositories are not defined
In general, we assume that if the user is specifying repositories,
the built-in one should not be used.
2024-08-26 14:27:21 +02:00
Adam Williamson
3e0b8103d2 Fix a typo in the kiwi image type attribute override patch
This colon was duplicated, which is syntactically invalid and
prevents the file from loading at all.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-08-22 09:44:50 -07:00
Neal Gompa
06840501bd kiwi: Add support for overriding kiwi image file name format
In order to be able to support workflows where the exact structure
of the image filenames matter (e.g. for Linux distribution artifacts),
support optionally overriding the image file name structure.
2024-08-21 09:35:45 +02:00
Neal Gompa
b22449c553 kiwi: Add support for overriding image type attributes
This allows setting things like the volume and application IDs
for ISO builds.
2024-08-21 09:34:53 +02:00
Neal Gompa
baa5a735e1 kiwi: Generate full logs with debug information
Without this flag, we do not have logs that include the details of
what happened during the build.
2024-04-10 14:41:15 +02:00
Tomas Kopecek
2013692fc9 New scmpolicy plugin
Plugin for scm policy using data from SCM checkout.

Related: https://pagure.io/koji/issue/3968
2024-02-09 14:47:37 +01:00
Tomas Kopecek
e57c768058 fix typos 2023-01-03 14:25:05 +01:00
Tomas Kopecek
ebf892a1c0 symlink logs to result dir 2023-01-03 14:25:05 +01:00
Tomas Kopecek
0372a8e6a4 kiwi: upload log for failed tasks
Related: https://pagure.io/koji/issue/3597
2023-01-03 14:25:05 +01:00
Igor Raits
4d0de9de3d kiwi: Bind-mount /dev into the buildroot for old-chroot
The OEM images can't be build with nspawn as they require mocking with
device-mapper which is near to impossible to properly to set up in the
container so those ones have to be built in old chroot where /dev can
and must be bind-mounted. In opposite for nspawn, bind-mounting /dev
breaks build completely.

Let's just dynamically decide based on the chroot type what to do.
2022-11-16 11:36:15 +01:00
Tomas Kopecek
05851ac0c9 Revert "PR#3568: kiwi: don't bind builders's /dev"
This reverts commit 56cea9adc2, reversing
changes made to e9b5ec215d.

mock was changed meanwhile to automatically bind device mapper into the
buildroot.

Related: https://pagure.io/koji/issue/3567
https://pagure.io/koji/pull-request/3585
https://github.com/rpm-software-management/mock/pull/1005
2022-11-15 14:20:22 +01:00
Tomas Kopecek
8b1030f863 better error for wrong include xml format 2022-11-10 13:21:39 +01:00
Tomas Kopecek
b8b52884b5 fix include path
Related: https://pagure.io/koji/issue/3553
2022-11-10 13:21:39 +01:00
Tomas Kopecek
5dcf480a40 allow to set it by user 2022-11-09 14:24:03 +01:00
Tomas Kopecek
655cb9797f kiwi: don't bind builders's /dev
Related: https://pagure.io/koji/issue/3567
2022-11-09 14:24:03 +01:00
Tomas Kopecek
6083bace39 kiwi: propagate --type option
Related: https://pagure.io/koji/issue/3556
2022-11-04 13:58:16 +01:00
Tomas Kopecek
0570e46fb0 kiwi: Explicitely use koji-generated description
Related: https://pagure.io/koji/issue/3497
2022-10-03 11:39:03 +02:00
Tomas Kopecek
d1d8f512c1 kiwi: handle include protocols
Related: https://pagure.io/koji/issue/3495
2022-09-29 15:40:38 +02:00
Tomas Kopecek
b6e7c99301 fix escape sequence 2022-05-02 11:26:32 +02:00
djuarezg
187975ae7e Update NVR option checking to match kiwi's 2022-05-02 11:18:13 +02:00
djuarezg
c071f37d2e Rename pkg group to dud-build 2022-05-02 11:18:13 +02:00
djuarezg
3aea7d849e Apply xorriso and flake8 suggestions 2022-05-02 11:18:13 +02:00
djuarezg
aa26a0a8c2 Adding initial Driver Update Disk building support 2022-05-02 11:18:13 +02:00
Tomas Kopecek
d3213b888f save modified .kiwi files per arch
Related: https://pagure.io/koji/issue/3210
2022-01-31 10:24:27 +01:00
Tomas Kopecek
bf23bf904e fix flake8 2022-01-19 15:29:59 +01:00
Tomas Kopecek
49dfa51bc5 fix working dir path 2022-01-19 15:26:32 +01:00
Tomas Kopecek
7521198a8c optional "make prep" 2022-01-19 15:26:32 +01:00
Tomas Kopecek
25cf5f78e1 remove unused code 2022-01-19 15:26:32 +01:00
Igor Raits
5c8f9c3e09 kiwi: Collect all files from bundle directory
Bundle directory has slightly different files (compressed, etc.) and
does not contain any JSON files so let's just collect all files from
there.

Signed-off-by: Igor Raits <igor.raits@gmail.com>
2022-01-19 15:26:32 +01:00
Tomas Kopecek
dfc5b01c9c fix packaging 2022-01-19 15:26:32 +01:00
Tomas Kopecek
565f59459e kiwi: use separate --release 2022-01-19 15:26:32 +01:00
Tomas Kopecek
e423263f51 kiwi: Implant releasever into the kiwi description
Related: https://pagure.io/koji/issue/3194
2022-01-19 15:26:32 +01:00
Igor Raits
d737bb4597 Store disk_image type of kiwi files
For example, it is used by .raw (OEM) images.

Signed-off-by: Igor Raits <igor.raits@gmail.com>
2022-01-19 15:26:32 +01:00
Igor Raits
74c414ee1c Add support for kiwi.result.json
Signed-off-by: Igor Raits <igor.raits@gmail.com>
2022-01-19 15:26:32 +01:00
Tomas Kopecek
f0f227f0ab fix flake8 2021-11-18 11:12:48 +01:00
Tomas Kopecek
79e1841c96 fix bandit 2021-11-18 11:12:48 +01:00
Tomas Kopecek
2d6a14845f alter name by selected profile 2021-11-18 11:12:48 +01:00
Tomas Kopecek
336573c0fd code simplification 2021-11-18 11:12:48 +01:00
Tomas Kopecek
86c8fdc177 use json results 2021-11-18 11:12:48 +01:00
Tomas Kopecek
8c1a7337ab kiwi: check include directive 2021-11-18 11:12:48 +01:00
Tomas Kopecek
86ee135dd1 json results 2021-11-18 11:12:48 +01:00
Tomas Kopecek
d31306e2f6 basic kiwi support 2021-11-18 11:12:48 +01:00
Tomas Kopecek
5f9fbf660e runroot: use --chroot instead of chroot mock command
Former is no officially supported anymore

Fixes: https://pagure.io/koji/issue/3133
2021-11-18 11:05:34 +01:00
Tomas Kopecek
ba2e1e520b basic security checks with bandit
Fixes: https://pagure.io/koji/issue/3042
2021-10-20 15:20:14 +02:00
Tomas Kopecek
c6e69b4f8b backport py27 compatible file open with encoding
client and builder needs to run on py27 which doesn't support
open(encoding='utf-8')

Related: https://pagure.io/koji/issue/2641
2021-02-16 14:13:03 +01:00