Worker/OSBuild: copy boot mode information to job result

Copy the image boot mode information from the job options to the
job result, so that the `KojiFinalize` job can later access it
and import as an extra metadata to Koji.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2023-08-01 13:43:54 +02:00 committed by Ondřej Budai
parent 5fd5cedd08
commit 6dbc3c200e

View file

@ -360,6 +360,9 @@ func (impl *OSBuildJobImpl) Run(job worker.Job) error {
// copy pipeline info to the result
osbuildJobResult.PipelineNames = jobArgs.PipelineNames
// copy the image boot mode to the result
osbuildJobResult.ImageBootMode = jobArgs.ImageBootMode
// get exports for all job's targets
exports := jobArgs.OsbuildExports()
if len(exports) == 0 {