Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NO-ISSUE: Fix git user config for daily-dev-publish build steps in Jenkins #2843

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

thiagoelg
Copy link
Member

The daily-dev-publish build is failing due to missing git user configuration:

> @kie-tools/[email protected] _build-step:setup-git-repo-bare /home/jenkins/workspace/KIE/kie-tools/main/kie-tools-daily-dev-publish/kie-tools/packages/kie-sandbox-accelerator-quarkus
> mkdirp ./dist-dev/git-repo-bare.git && cd ./dist-dev/git-repo-bare.git && git init --bare && git --bare update-server-info && mv hooks/post-update.sample hooks/post-update

hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint: 
hint: 	git config --global init.defaultBranch <name>
hint: 
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint: 
hint: 	git branch -m <name>
Initialized empty Git repository in /home/jenkins/workspace/KIE/kie-tools/main/kie-tools-daily-dev-publish/kie-tools/packages/kie-sandbox-accelerator-quarkus/dist-dev/git-repo-bare.git/

> @kie-tools/[email protected] _build-step:setup-git-repo-content /home/jenkins/workspace/KIE/kie-tools/main/kie-tools-daily-dev-publish/kie-tools/packages/kie-sandbox-accelerator-quarkus
> mkdirp ./dist-dev/git-repo-content && cpy './dist/git-repo-content/**' ./dist-dev/git-repo-content && cd ./dist-dev/git-repo-content && git init --initial-branch main && git remote add repo ../git-repo-bare.git && git add . && git commit -m 'Single commit' && git push repo main

Initialized empty Git repository in /home/jenkins/workspace/KIE/kie-tools/main/kie-tools-daily-dev-publish/kie-tools/packages/kie-sandbox-accelerator-quarkus/dist-dev/git-repo-content/.git/
Author identity unknown

*** Please tell me who you are.

Run

  git config --global user.email "[email protected]"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'nonrootuser@18ca75c6d4fc.(none)')
 ELIFECYCLE  Command failed with exit code 128.
 ELIFECYCLE  Command failed with exit code 128.
/home/jenkins/workspace/KIE/kie-tools/main/kie-tools-daily-dev-publish/kie-tools/packages/kie-sandbox-accelerator-quarkus:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @kie-tools/[email protected] build:prod: `pnpm run _build && pnpm run test`
Exit status 128

This change should fix it, but I could not run the pipeline from my fork to test it.

@thiagoelg thiagoelg requested a review from tiagobento as a code owner January 9, 2025 19:53
@thiagoelg thiagoelg merged commit bbb4e76 into apache:main Jan 9, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants