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

OpenShift Pipelines: Git resolver stopped working after updating to version v1.20

XMLWordPrintable

      Description of problem:

      Git resolver stopped working after updating to version v1.20

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

      Steps to Reproduce

      • Install OSP v1.19.3 and create a pipeline with git-resolver task and create a secret for token in same namespace where pipeline created and pass the secret name to `gitToken` param of git-resolver. 
      • Run Pipeline and it will run successfully.
      • Update to OSP `v1.20`.
      • Start same pipeline

      Actual results:

      Pipeline fails with error 

      Pipeline openshift/new-pipeline can't be Run; it contains Tasks that don't exist: Couldn't retrieve Task "resolver type git\nurl = https://github.com/<url>.git\n": error requesting remote resource: error getting "Git" "openshift/git-2e4d2b4f5c450b0143ac2fd8d04e1fa6": error resolving repository: clone error: authentication required

       

      Expected results:

      Pipeline Run successfully.

      Reproducibility (Always/Intermittent/Only Once): Always

      Acceptance criteria: 

       

      Definition of Done:

      Build Details:

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

      Pipeline Example:

       

      spec:
        tasks:
          - name: fetch-task-repo
            taskRef:
              params:
                - name: url
                  value: '<URL>.git'
                - name: revision
                  value: main
                - name: pathInRepo
                  value: tekton/task.yaml
                - name: token
                  value: git-token
              resolver: git
        workspaces:
          - name: shared-workspace

       

              rh-ee-athorp Andrew Thorp
              rhn-support-sburhade Satyam Burhade
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: