Skip to content

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

@serverhorror

Description

@serverhorror

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions