1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-10 10:50:11 +02:00

update semantic version too (#4924)

This commit is contained in:
tiloKo 2024-05-07 11:33:32 +02:00 committed by GitHub
parent daf559a8ca
commit d6f3ba1b02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -122,6 +122,7 @@ func (pv *ProductVersionHeader) SyncAddonDescriptorVersionFields(addonDescriptor
addonDescriptor.AddonVersion = pv.ProductVersion
addonDescriptor.AddonSpsLevel = pv.SpsLevel
addonDescriptor.AddonPatchLevel = pv.PatchLevel
addonDescriptor.AddonVersionYAML = pv.SemanticProductVersion //In case it had wildCards which got resolved
//in NewPvh function pvh was build up 1:1 based on addonDescriptor
//in checkAndResolve pvh was synced from AAKaaS reply assuming it does not contain more content than before(if it does it is ignored)
@ -141,6 +142,7 @@ func (pv *ProductVersionHeader) SyncAddonDescriptorVersionFields(addonDescriptor
addonDescriptor.Repositories[repo_index].PatchLevel = foundPvc.PatchLevel
addonDescriptor.Repositories[repo_index].SpLevel = foundPvc.SpLevel
addonDescriptor.Repositories[repo_index].Version = foundPvc.SoftwareComponentVersion
addonDescriptor.Repositories[repo_index].VersionYAML = foundPvc.SemanticSoftwareComponentVersion //In case it had wildCards which got resolved
}
return nil