Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-7601

Git clone fails when using github-push ClusterTriggerBinding

XMLWordPrintable

    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide
      git-clone was failing with a 403 error when using git-repo-url because $(body.repository.url) points to the GitHub API URL.
      To resolve this, a new parameter git-repo-clone-url has been introduced, which uses $(body.repository.html_url) — the correct URL for cloning the repository.
      Show
      git-clone was failing with a 403 error when using git-repo-url because $(body.repository.url) points to the GitHub API URL. To resolve this, a new parameter git-repo-clone-url has been introduced, which uses $(body.repository.html_url) — the correct URL for cloning the repository.
    • Pipelines Sprint Pioneers 28

      Description of problem:

      git-clone task fails when using github-push ClusterTriggerBinding as it uses param `git-repo-url` with value  `$(body.repository.url)` which uses the api url. 

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

      1. Create a Triggertemplate and eventlistener and a Pipeline that is run when a git event is received.

      2 Use the `github-push` ClusterTriggerBinding. It can be configured in the eventlistener definition:

      apiVersion: triggers.tekton.dev/v1beta1
      kind: EventListener
      metadata:
        name: vote-app
      spec:
        serviceAccountName: pipeline
        triggers:
        - bindings:
          - ref: github-push
          template:
            ref: vote-app 

       

       

       

      Actual results:

      git-clone task in the pipeline fails.

      Expected results:

      Reproducibility (Always/Intermittent/Only Once):

      Acceptance criteria: 

       

      Definition of Done:

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

       

       *

              sashture Savita .
              rhn-support-jyarora Jyotsana Arora
              Sanskruti Dongre Sanskruti Dongre
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: