mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-03-03 15:02:35 +02:00
feat(piperExecuteBin): support running images from private docker registries (#3622)
This commit is contained in:
parent
3708f274cc
commit
b9c0aa008f
@ -221,7 +221,7 @@ func (m *StepData) GetContextParameterFilters() StepFilters {
|
||||
}
|
||||
}
|
||||
if len(m.Spec.Containers) > 0 {
|
||||
parameterKeys := []string{"containerCommand", "containerShell", "dockerEnvVars", "dockerImage", "dockerName", "dockerOptions", "dockerPullImage", "dockerVolumeBind", "dockerWorkspace"}
|
||||
parameterKeys := []string{"containerCommand", "containerShell", "dockerEnvVars", "dockerImage", "dockerName", "dockerOptions", "dockerPullImage", "dockerVolumeBind", "dockerWorkspace", "dockerRegistryUrl", "dockerRegistryCredentialsId"}
|
||||
for _, container := range m.Spec.Containers {
|
||||
for _, condition := range container.Conditions {
|
||||
for _, dependentParam := range condition.Params {
|
||||
|
@ -291,7 +291,7 @@ func TestGetContextParameterFilters(t *testing.T) {
|
||||
|
||||
t.Run("Containers", func(t *testing.T) {
|
||||
filters := metadata2.GetContextParameterFilters()
|
||||
params := defaultParams("containerCommand", "containerShell", "dockerEnvVars", "dockerImage", "dockerName", "dockerOptions", "dockerPullImage", "dockerVolumeBind", "dockerWorkspace", "pip", "scanType")
|
||||
params := defaultParams("containerCommand", "containerShell", "dockerEnvVars", "dockerImage", "dockerName", "dockerOptions", "dockerPullImage", "dockerVolumeBind", "dockerWorkspace", "dockerRegistryUrl", "dockerRegistryCredentialsId", "pip", "scanType")
|
||||
|
||||
assert.Equal(t, params, filters.All, "incorrect filter All")
|
||||
assert.Equal(t, params, filters.General, "incorrect filter General")
|
||||
|
Loading…
x
Reference in New Issue
Block a user