You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I had this error when building my Maven project in a Docker container:
[ERROR] Failed to execute goal org.eluder.coveralls:coveralls-maven-plugin:4.3.0:report (default-cli) on project database-uploader: Build error: One of setGitDir or setWorkTree must be called
My Maven project was not in the root of the repository and I was mounting only the subdirectory in the build container. I solved by mounting the root of the project (which contains the .git directory).
Caused by: java.lang.IllegalArgumentException: One of setGitDir or setWorkTree must be called.
at org.eclipse.jgit.lib.BaseRepositoryBuilder.requireGitDirOrWorkTree (BaseRepositoryBuilder.java:590)
at org.eclipse.jgit.lib.BaseRepositoryBuilder.setup (BaseRepositoryBuilder.java:555)
at org.eclipse.jgit.lib.BaseRepositoryBuilder.build (BaseRepositoryBuilder.java:580)
at org.eluder.coveralls.maven.plugin.domain.GitRepository.load (GitRepository.java:51)
at org.eluder.coveralls.maven.plugin.CoverallsReportMojo.createJob (CoverallsReportMojo.java:322)
at org.eluder.coveralls.maven.plugin.CoverallsReportMojo.execute (CoverallsReportMojo.java:238)
Hi. I had this error when building my Maven project in a Docker container:
My Maven project was not in the root of the repository and I was mounting only the subdirectory in the build container. I solved by mounting the root of the project (which contains the
.git
directory).Here you can see the full build log: https://travis-ci.org/aifa-gov-it/invoices-processor/jobs/235953051
It could be useful to output an error message explaining the situation.
The text was updated successfully, but these errors were encountered: