You've already forked sap-jenkins-library
							
							
				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:
		| @@ -288,7 +288,7 @@ func runGolangBuild(config *golangBuildOptions, telemetryData *telemetry.CustomD | ||||
| 				Name: binary, | ||||
| 			}) | ||||
| 		} | ||||
| 		commonPipelineEnvironment.artifacts = binaryArtifacts | ||||
| 		commonPipelineEnvironment.custom.artifacts = binaryArtifacts | ||||
|  | ||||
| 	} | ||||
|  | ||||
|   | ||||
| @@ -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"}, | ||||
| 						}, | ||||
| 					}, | ||||
| 					{ | ||||
|   | ||||
| @@ -240,7 +240,7 @@ spec: | ||||
|         type: piperEnvironment | ||||
|         params: | ||||
|           - name: custom/buildSettingsInfo | ||||
|           - name: artifacts | ||||
|           - name: custom/artifacts | ||||
|             type: "piperenv.Artifacts" | ||||
|       - name: reports | ||||
|         type: reports | ||||
|   | ||||
		Reference in New Issue
	
	Block a user