Worker/koji-finalize: include manifest metadata in the build metadata
Expose the extra metadata attached to each manifest output, also to the build extra metadata under `osbuild_manifest` property. The value is a map of all manifest metadata with keys being the filename of each manifest. This will expose the information about osbuild-composer and osbuild/images versions used to produce the manifest in the Koji buildinfo, including the Web UI. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
c27cf0253d
commit
95169111de
2 changed files with 8 additions and 0 deletions
|
|
@ -119,6 +119,7 @@ func (impl *KojiFinalizeJobImpl) Run(job worker.Job) error {
|
|||
var outputs []koji.BuildOutput
|
||||
// Extra info for each image output is stored using the image filename as the key
|
||||
imgOutputsExtraInfo := map[string]koji.ImageExtraInfo{}
|
||||
manifestOutputsExtraInfo := map[string]*koji.ManifestExtraInfo{}
|
||||
|
||||
var osbuildResults []worker.OSBuildJobResult
|
||||
initArgs, osbuildResults, err = extractDynamicArgs(job)
|
||||
|
|
@ -249,6 +250,8 @@ func (impl *KojiFinalizeJobImpl) Run(job worker.Job) error {
|
|||
manifestExtraInfo.Info = manifestInfo
|
||||
}
|
||||
|
||||
manifestOutputsExtraInfo[kojiTargetOptions.OSBuildManifest.Filename] = &manifestExtraInfo
|
||||
|
||||
outputs = append(outputs, koji.BuildOutput{
|
||||
BuildRootID: uint64(i),
|
||||
Filename: kojiTargetOptions.OSBuildManifest.Filename,
|
||||
|
|
@ -291,6 +294,7 @@ func (impl *KojiFinalizeJobImpl) Run(job worker.Job) error {
|
|||
TypeInfo: koji.TypeInfoBuild{
|
||||
Image: imgOutputsExtraInfo,
|
||||
},
|
||||
Manifest: manifestOutputsExtraInfo,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue