Describe the bug
org.ods.component.InfrastructureStage will always run (at least) make test regardless of branchToEnvironmentMapping.
To Reproduce
Steps to reproduce the behavior:
- Create any component that has
type: ods-infra
- Create a branch with any random name
- have one of the following in
Jenkinsfile
odsComponentStageInfrastructure(context, [cloudProvider: 'AWS'])
odsComponentStageInfrastructure(context, [cloudProvider: 'Azure'])
- Have this in your
Jenkinsfile
branchToEnvironmentMapping: [
'master': 'dev',
],
- git commit and push
- This will try and run
make test
Expected behavior
This should honor branchToEnvironmentMapping and either stop, if it is not matching, or build if it is matching.
Screenshots
Affected version (please complete the following information):