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,11 +368,11 @@ 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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return resourceParams
|
return resourceParams
|
||||||
}
|
}
|
||||||
|
@ -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("", "")
|
||||||
|
Loading…
Reference in New Issue
Block a user