coveralls-maven-plugin icon indicating copy to clipboard operation
coveralls-maven-plugin copied to clipboard

Spam in coveralls report

Open nielsdebruin opened this issue 9 years ago • 4 comments

I have configure the plugin using the example provided (cobertura) everything works fine when I generate and publish the report to coveralls from my on my local machine. However when I publish to Travis Pro I am getting random commit messages from other repos. I did regenerate the key a couple times (which is private) but that didn't seem to help. I just cant figure out what is wrong.

nielsdebruin avatar Dec 26 '15 11:12 nielsdebruin

Never heard before of such issue with git logs. I haven't tested Travis Pro so cannot say much about it.

The plugin tries to resolve git metadata by looking ${project.basedir} and uses JGit's findGitDir method to look directories up from the basedir until it finds valid git metadata for a repository.

I'm not sure if custom project/repository layout can mess up the repository lookup logic. I use git submodules with the plugin itself and it still works correctly and finds the main project's git repository.

trautonen avatar Jan 06 '16 22:01 trautonen

Facing the same issue. When I publish to travis-pro, coveralls doesn't pull the information from travis-pro but from travis-ci. And then the committer and the commit messages are all wrong, they aren't even related to the GitHub repository I'm building.

If I can find a workaround I'll get back to the question.

aracioppibroad avatar May 10 '16 15:05 aracioppibroad

It was easy to fix, it seems. You need to specify the service-name to coveralls (I had to do that, with nodejs, per example). There's nothing wrong with your repo-token. If it helps you, I have the repo token setup in my Travis settings (coveralls_repo_token).

Branch, committer info and commit messages seem to be correct:

<plugin> <groupId>org.eluder.coveralls</groupId> <artifactId>coveralls-maven-plugin</artifactId> <version>4.1.0</version> <configuration> <repoToken>${env.coveralls_repo_token}</repoToken> <serviceName>travis-pro</serviceName> </configuration> </plugin>

v4ngelo avatar May 10 '16 16:05 v4ngelo

I was having the same problem. Adding <serviceName>travis-pro</serviceName> seemed to fix it though.

amc6 avatar Oct 31 '16 23:10 amc6