Uploaded image for project: 'FlightPath'
  1. FlightPath
  2. FLPATH-2038

Generated software template doesn't populate gitHost variable

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Description of the problem:

      The pipelinerun template when using a Github template is being generated with a blank field for gitHost:

      Since the field is null, it is automatically populated via the code here to use gitlab instead of github. The generated pipeline when it runs is looking for the wrong secret: gitlab-ssh-credentials. Since the secret does not exist, the pipeline fails.{}

      How reproducible: 100%

      Steps to reproduce:

      1. Using orchestrator operator 1.4.0-rc6, generate software template using a basic workflow that uses Github: https://github.com/rhdhorchestrator/workflow-software-templates/blob/v1.4.x/scaffolder-templates/github-workflows/basic-workflow/template.yaml

      2. In the generated template look at the pipeline run CR.

      Actual results: Pipeline will fail because it is looking for the incorrect secret

      Expected results: Githost field should be populated correctly.

              rh-ee-eshalev Elai Shalev
              yfirst Yona First
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: