1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-10-30 23:57:50 +02:00

fix (golang) : publish binaries to custom in cpe (#3767)

Signed-off-by: Ashly Mathew <ashly.mathew@sap.com>
This commit is contained in:
Ashly Mathew
2022-05-05 15:06:42 +02:00
committed by GitHub
parent 823ef47db6
commit 3c288e81ad
3 changed files with 6 additions and 6 deletions

View File

@@ -288,7 +288,7 @@ func runGolangBuild(config *golangBuildOptions, telemetryData *telemetry.CustomD
Name: binary,
})
}
commonPipelineEnvironment.artifacts = binaryArtifacts
commonPipelineEnvironment.custom.artifacts = binaryArtifacts
}

View File

@@ -48,9 +48,9 @@ type golangBuildOptions struct {
}
type golangBuildCommonPipelineEnvironment struct {
artifacts piperenv.Artifacts
custom struct {
custom struct {
buildSettingsInfo string
artifacts piperenv.Artifacts
}
}
@@ -61,7 +61,7 @@ func (p *golangBuildCommonPipelineEnvironment) persist(path, resourceName string
value interface{}
}{
{category: "custom", name: "buildSettingsInfo", value: p.custom.buildSettingsInfo},
{category: "", name: "artifacts", value: p.artifacts},
{category: "custom", name: "artifacts", value: p.custom.artifacts},
}
errCount := 0
@@ -528,7 +528,7 @@ func golangBuildMetadata() config.StepData {
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"name": "custom/buildSettingsInfo"},
{"name": "artifacts", "type": "piperenv.Artifacts"},
{"name": "custom/artifacts", "type": "piperenv.Artifacts"},
},
},
{

View File

@@ -240,7 +240,7 @@ spec:
type: piperEnvironment
params:
- name: custom/buildSettingsInfo
- name: artifacts
- name: custom/artifacts
type: "piperenv.Artifacts"
- name: reports
type: reports