Commits on a build agent show author `Jenkins <jenkins@build-07>` even though `git config user.email` returns the bot address.
IntermediateTroubleshootingConfig, Line Endings, Files and Platform Quirks
Answer
Likely causes → Environment variables override config: GIT_AUTHOR_NAME, GIT_AUTHOR_EMAIL, GIT_COMMITTER_NAME, GIT_COMMITTER_EMAIL set by the CI tool, a plugin, or a direnv file.
Diagnose →
env | grep -E '^GIT_(AUTHOR|COMMITTER)_'
git var GIT_AUTHOR_IDENT
git var GIT_COMMITTER_IDENT
Fix → Unset or set them correctly in the job:
export GIT_AUTHOR_NAME="release-bot" GIT_AUTHOR_EMAIL="[email protected]"
export GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME" GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
Prevent → Define the bot identity in one place (pipeline-level env) and check git var GIT_AUTHOR_IDENT in a debug step.
More on Config, Line Endings, Files and Platform Quirks
`warning: in the working copy of 'app.sh', LF will be replaced by CRLF the next time Git touches it`Beginner`git diff` shows `old mode 100755` / `new mode 100644` for hundreds of files with no content change.BeginnerCloning on Windows fails with `error: unable to create file src/very/deep/.../component.test.ts: Filename too long`.BeginnerYou renamed `header.tsx` to `Header.tsx` on macOS. Locally everything builds, but Linux CI fails with `Module not found: Can't resolve './components/Header'`.IntermediateCheckout on Windows fails with `error: invalid path 'logs/2024-01-01T10:00:00.log'` (or `'docs/aux.md'`) and `fatal: unable to checkout working tree`.IntermediateClone prints `warning: the following paths have collided (e.g. case-sensitive paths on a case-insensitive filesystem) and only one from the same colliding group is in the working tree:`Intermediate