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:
parent
9f2d8a70b1
commit
58b30cc99b
@ -368,8 +368,8 @@ func (m *StepData) GetResourceParameters(path, name string) map[string]interface
|
||||
if res.Name == name {
|
||||
if val := getParameterValue(path, res, param); val != nil {
|
||||
resourceParams[param.Name] = val
|
||||
break
|
||||
}
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -657,6 +657,13 @@ func TestGetResourceParameters(t *testing.T) {
|
||||
}}}},
|
||||
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("", "")
|
||||
|
Loading…
Reference in New Issue
Block a user