Description of problem: The pipeline generated for a Git repo through the "Import from Git" flow fails if the Git repo uses "main". Console assumes the default branch is called "master" and sets that as the value of the GIT_REVISION pipeline parameter which would be incorrect for repositories that use "main" as the default branch and don't have a "master" branch. How reproducible: Steps to Reproduce: 1. Import from Git in Dev perspective 2. Provide https://github.com/siamaksade/todo-demo-app 3. Select checkbox to add pipeline 4. Create Actual results: The pipelinerun fails because the Git repo doesn't not have a "master" branch Expected results: The pipelinerun executes successfully
Verified on build version: 4.11.0-0.nightly-2022-05-11-054135 browser version: Chrome 99
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: OpenShift Container Platform 4.11.0 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:5069