1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00

fix(golangBuild): publishing of binaries (#3643)

This commit is contained in:
Christian Volk 2022-03-17 11:07:51 +01:00 committed by GitHub
parent 9f2d8a70b1
commit 58b30cc99b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -368,8 +368,8 @@ func (m *StepData) GetResourceParameters(path, name string) map[string]interface
if res.Name == name { if res.Name == name {
if val := getParameterValue(path, res, param); val != nil { if val := getParameterValue(path, res, param); val != nil {
resourceParams[param.Name] = val resourceParams[param.Name] = val
break
} }
break
} }
} }
} }

View File

@ -657,6 +657,13 @@ func TestGetResourceParameters(t *testing.T) {
}}}}, }}}},
expected: map[string]interface{}{"param1": "val1"}, expected: map[string]interface{}{"param1": "val1"},
}, },
{
in: StepData{
Spec: StepSpec{Inputs: StepInputs{Parameters: []StepParameters{
{Name: "param1", ResourceRef: []ResourceReference{{Name: "commonPipelineEnvironment", Param: "sthwhichclearlydoesntexist"}, {Name: "commonPipelineEnvironment", Param: "envparam2"}}, Type: "string"},
}}}},
expected: map[string]interface{}{"param1": "val2"},
},
} }
dir, err := ioutil.TempDir("", "") dir, err := ioutil.TempDir("", "")