-
Bug
-
Resolution: Done
-
Critical
-
Pipelines 1.20.0
-
False
-
-
False
-
-
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