Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-15206

Mark `ref` option as mandatory if branch is not "master"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • 4.13, 4.12, 4.11, 4.10
    • Documentation / Build
    • None
    • Important
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      The documentation [1] specifies "says "Optionally, specify the ref field to check out a specific Git reference." 
      Perhaps it should mention it's only optional if the default branch is master. 
      
      And section [2] should show an example of the payload GitHub sends, and mention the ref field is relevant. i.e., the build will only be triggered in the ref from the github webhook event matches the ref in the git source
      
      [1] https://docs.openshift.com/container-platform/4.13/cicd/builds/creating-build-inputs.html#builds-source-code_creating-build-inputs
      [2] https://docs.openshift.com/container-platform/4.13/cicd/builds/triggering-builds-build-hooks.html#builds-using-github-webhooks_triggering-builds-build-hooks

              rh-ee-apjagtap Apoorva Jagtap
              rh-ee-apjagtap Apoorva Jagtap
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: