我有一个使用 Travis-CI 进行持续集成的 maven 项目,我想使用 JaCoCo 和 Coveralls.io 添加代码覆盖率。
Travis-CI 中的构建运行良好,并且代码覆盖结果生成正确(至少,根据日志)。但结果提交失败并返回 422,如下所示:
[INFO] Starting Coveralls job for travis-ci (188355098)
[INFO] Using repository token <secret>
...
[INFO] Writing Coveralls data to /home/travis/build/bThink-BGU/BPjs/target/coveralls.json...
[INFO] Processing coverage report from /home/travis/build/bThink-BGU/BPjs/target/site/jacoco/jacoco.xml
[INFO] Successfully wrote Coveralls data in 224ms
[INFO] Gathered code coverage metrics for 43 source files with 2944 lines of code:
[INFO] - 902 relevant lines
...
[INFO] Submitting Coveralls data to API
[ERROR] Submission failed in 442ms while processing data
...
[ERROR] Failed to execute goal org.eluder.coveralls:coveralls-maven-plugin:4.3.0:report (default-cli) on project BPjs: Processing of input or output data failed: Report submission to Coveralls API failed with HTTP status 422: Unprocessable Entity (Couldn't find a repository matching this job.) -> [Help 1]
知道有什么问题吗?我尝试按照Maven 工作服插件TRAVIS_JOB_ID
中的建议显式添加,但无济于事。
回购是开放的,据我所知,我不需要回购令牌。
谢谢!