ods-jenkins-shared-library
ods-jenkins-shared-library copied to clipboard
InfrastructureStage (org.ods.component) does not honor branchToEnvironmentMapping
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
JenkinsfileodsComponentStageInfrastructure(context, [cloudProvider: 'AWS']) odsComponentStageInfrastructure(context, [cloudProvider: 'Azure']) - Have this in your
JenkinsfilebranchToEnvironmentMapping: [ '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):
- OpenDevStack 4.x, master