Skip to content

default userHome=/home/git does not work when SSH or basic auth provided #86

@hudac

Description

@hudac

Issue

The default task definition task/git-clone/git-clone.yaml sets userHome=/home/git as default value.

When SSH or basic auth is provided, then the task fails during copy of required folders, i.e. here:

'/home/git/.git-credentials': No such file or directory

Workaround

  • either mkdir "${PARAM_USER_HOME}" within task's script, works as root only
  • or mount an emptyDir volume under /home/git (works also as non-root)
  • or use the already existing /tekton/home (works also as non-root)

Additional Info

The documentation mentions /tekton/home as default.

Most probably related to #62

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions