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:
parent
e90856d5bf
commit
292b1eb7e2
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user