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

Permission denied in git-clone task

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • Pipelines 1.10.0
    • Pipelines 1.10.0
    • Tekton Catalog
    • None
    • 2
    • False
    • None
    • False
    • Pipelines Sprint 233, Pipelines Sprint 234

      Description of problem:

      git-clone task fails with following error

      2023/03/02 12:22:48 warning: unsuccessful cred copy: ".docker" from "/tekton/creds" to "/home/git": unable to create destination directory: mkdir /home/git: permission denied
      + '[' false = true ']'
      + '[' false = true ']'
      + '[' false = true ']'
      + CHECKOUT_DIR=/workspace/output/
      + '[' true = true ']'
      + cleandir
      + '[' -d /workspace/output/ ']'
      + rm -rf /workspace/output//lost+found
      + 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
      

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

      OpenShift 4.11.29 with Pipelines 1.10 (index image 445410)

      Steps to Reproduce

      1. run git-clone task

      Actual results:

      Expected results:

      Reproducibility (Always/Intermittent/Only Once):

      always

      Build Details:

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

              vdemeest Vincent Demeester
              ppitonak Pavol Pitoňák
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: