-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
2
-
False
-
None
-
False
-
-
-
Pipelines Sprint 241, Pipelines Sprint 242
Description of problem:
I'm running the git-clone ClusterTask (0.9) and having some issues
+ '[' -d /workspace/output/ ']'
+ rm -rf '/workspace/output//*'
+ rm -rf '/workspace/output//.[!.]*'
+ rm -rf '/workspace/output//..?*'
+ test -z ''
+ test -z ''
+ test -z ''
+ git config --global --add safe.directory /workspace/output
error: could not lock config file /home/git/.gitconfig: No such file or directory
Adding the SecurityContext to the PipelineRun didn't solve the issue
podTemplate:
securityContext:
fsGroup: 65532
Workaround
Use git-clone task 0.8
Prerequisites (if any, like setup, operators/versions):
- Openshift Pipelines 1.10.2
- Openshift 4.12
- Use git-clone cluster task
- Create PVC (Local Storage Operator if that matters)
Steps to Reproduce
- Create a pipeline using the git-clone ClusterTask
Actual results:
+ '[' -d /workspace/output/ ']'
+ rm -rf '/workspace/output//*'
+ rm -rf '/workspace/output//.[!.]*'
+ rm -rf '/workspace/output//..?*'
+ test -z ''
+ test -z ''
+ test -z ''
+ git config --global --add safe.directory /workspace/output
error: could not lock config file /home/git/.gitconfig: No such file or directory
Expected results:
The pipeline runs with no issues
Reproducibility (Always/Intermittent/Only Once):
Always
Acceptance criteria:
Definition of Done:
Fix issue or guidance on how to run this task version
Build Details:
Additional info (Such as Logs, Screenshots, etc):