1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-02-21 19:48:53 +02:00

Update abapAddonAssemblyKitCheckPV.go (#2468)

Co-authored-by: Daniel Mieg <56156797+DanielMieg@users.noreply.github.com>
This commit is contained in:
tiloKo 2020-12-16 11:19:48 +01:00 committed by GitHub
parent fe6a0b057e
commit dbef910e83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@ package cmd
import (
"encoding/json"
"net/url"
abapbuild "github.com/SAP/jenkins-library/pkg/abap/build"
"github.com/SAP/jenkins-library/pkg/abaputils"
@ -78,8 +79,8 @@ func (p *productVersion) transferVersionFields(initialAddonDescriptor *abaputils
}
func (p *productVersion) validateAndResolveVersionFields() error {
log.Entry().Infof("Validate product %s version '%s' and resolve version", p.Name, p.VersionYAML)
appendum := "/odata/aas_ocs_package/ValidateProductVersion?Name='" + p.Name + "'&Version='" + p.VersionYAML + "'"
log.Entry().Infof("Validate product '%s' version '%s' and resolve version", p.Name, p.VersionYAML)
appendum := "/odata/aas_ocs_package/ValidateProductVersion?Name='" + url.QueryEscape(p.Name) + "'&Version='" + url.QueryEscape(p.VersionYAML) + "'"
body, err := p.Connector.Get(appendum)
if err != nil {
return err