Skip to content

Tree-less clone fails the build framework on git diff #346

@dennis-behm

Description

@dennis-behm

The treeless clone configuration let's build frameworks fail to load the required tree for git diff, especially when using access tokens to connect to the remote.

*! Error executing Git command: git -C /u/gitlab/workspace/retirementCalc/build-12758/retirementCalc/retirementCalc --no-pager diff --name-status origin/main 2d476728f63b927059bc1e2cfbe76e9637b73e4d error: remote: HTTP Basic: Access denied. If a password was provided for Git authentication, the password was incorrect or you're required to use a token instead of a password. If a token was provided, it was either incorrect, expired, or improperly scoped. See http://gitlab.dat.ibm.com/help/topics/git/troubleshooting_git.md#error-on-git-fetch-http-basic-access-denied
fatal: Authentication failed for 'http://gitlab.dat.ibm.com/dat/retirementCalc.git/'
fatal: could not fetch 88130278e49358ea28baa68ef9f67293d4cce72d from promisor remote

See

echo $PGM": [INFO] Preforming Git Clone of Repo ${Repo}, Ref ${BranchID} to $(getWorkDirectory)"
if [ ! -z "${application}" ]; then
CMD="git clone --filter=tree:0 -b ${BranchID} ${Repo} ${application}"
else
CMD="git clone --filter=tree:0 -b ${BranchID} ${Repo}"

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