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

Fix for buildSetting file (#3325)

Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
This commit is contained in:
kingvvgo 2021-12-06 14:50:22 +01:00 committed by GitHub
parent e90856d5bf
commit 292b1eb7e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,15 +26,6 @@ type BuildOptions struct {
DockerImage string `json:"dockerImage,omitempty"`
}
func (i *BuildOptions) ToJson() ([]byte, error) {
tmp, err := json.Marshal(i)
if err != nil {
return nil, errors.Wrap(err, "failed to generate valid JSON.")
} else {
return tmp, nil
}
}
func CreateBuildSettingsInfo(config *BuildOptions, buildTool string) (string, error) {
currentBuildSettingsInfo := BuildOptions{
CreateBOM: config.CreateBOM,