Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
serverhorror opened this issue Mar 8, 2024 · 0 comments · May be fixed by #1077
Open

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

serverhorror opened this issue Mar 8, 2024 · 0 comments · May be fixed by #1077
Labels
bug Something isn't working

Comments

@serverhorror
Copy link
Contributor

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 serverhorror added the bug Something isn't working label Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant