ods-jenkins-shared-library icon indicating copy to clipboard operation
ods-jenkins-shared-library copied to clipboard

InfrastructureStage (org.ods.component) does not honor branchToEnvironmentMapping

Open serverhorror opened this issue 1 year ago • 0 comments

Describe the bug

org.ods.component.InfrastructureStage will always run (at least) make test regardless of branchToEnvironmentMapping.

To Reproduce Steps to reproduce the behavior:

  1. Create any component that has type: ods-infra
  2. Create a branch with any random name
  3. have one of the following in Jenkinsfile
    odsComponentStageInfrastructure(context, [cloudProvider: 'AWS'])
    odsComponentStageInfrastructure(context, [cloudProvider: 'Azure'])
    
  4. Have this in your Jenkinsfile
    branchToEnvironmentMapping: [
     'master': 'dev',
    ],
    
  5. git commit and push
  6. 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

serverhorror avatar Mar 08 '24 18:03 serverhorror