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

Missing or non working git_messages for Jenkins #322

Open
jympetalmd opened this issue Oct 19, 2021 · 1 comment
Open

Missing or non working git_messages for Jenkins #322

jympetalmd opened this issue Oct 19, 2021 · 1 comment

Comments

@jympetalmd
Copy link

The git message is not passed to Coveralls.io with Jenkins:
image
Running with verbosity=Verbose, I also confirm:
[2021-10-19T15:48:27.645Z] [debug] "2021-10-19T15:48:26.877Z" { [2021-10-19T15:48:27.645Z] service_name: 'jenkins', [2021-10-19T15:48:27.645Z] service_job_id: '2', [2021-10-19T15:48:27.645Z] service_pull_request: '144', [2021-10-19T15:48:27.645Z] run_at: '2021-10-19T15:48:26.866Z', [2021-10-19T15:48:27.645Z] repo_token: ****, [2021-10-19T15:48:27.645Z] git: { [2021-10-19T15:48:27.645Z] head: { [2021-10-19T15:48:27.645Z] id: 'xxxx', [2021-10-19T15:48:27.645Z] committer_name: 'jympetalmd', [2021-10-19T15:48:27.645Z] committer_email: '', [2021-10-19T15:48:27.645Z] message: 'Unknown Commit Message', [2021-10-19T15:48:27.645Z] author_name: 'Unknown Author', [2021-10-19T15:48:27.645Z] author_email: '' [2021-10-19T15:48:27.645Z] }, [2021-10-19T15:48:27.645Z] branch: 'xxxx', [2021-10-19T15:48:27.645Z] remotes: [] [2021-10-19T15:48:27.645Z] } [2021-10-19T15:48:27.645Z] }

Is it because I ran the process in a docker container, with these env. variables:
-e 'JENKINS_URL=https://XXXXXX/' -e 'COVERALLS_REPO_TOKEN=****' -e 'GIT_BRANCH=XXXX' -e 'BUILD_ID=2' -e 'CHANGE_ID=144' -e 'GIT_COMMIT=XXXXXXXX' -e 'CHANGE_AUTHOR=jympetalmd'
?

@jtwebman
Copy link

jtwebman commented Mar 6, 2022

Since this library doesn't seem to be supported anymore I fix a bunch of things on a fork if you want to check it out and are still pulling the library into your packages: https://github.com/jtwebman/coveralls-next My guess this is broken as well in that version but I am open to looking and fixing this issue if you know why. From what I see it will not show the GIT COMMIT MESSAGE unless there is a .git folder but we can add a new environment variable to support passing it.

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

No branches or pull requests

2 participants