codeclimate / ruby-test-reporter

DEPRECATED Uploads Ruby test coverage data to Code Climate
https://codeclimate.com
Other
92 stars 92 forks source link

Jenkins with Github Pull Request Builder fails to accurately report #189

Closed andrewhood125 closed 7 years ago

andrewhood125 commented 7 years ago

Jenkins when used with Github Pull Request Builder uses a special branch. It's ref is created by Github.

It looks like this pull/ID/head which is the head of your Pull Request or pull/ID/merge which is your PR merged into your intended branch. The result is a sha that differs than what you find in your pull request.

Because it still has a full working git repo in the checkout though, and ruby-test-reporter gives that precedence over info in environment variables coverage is reported with the wrong sha.

https://help.github.com/articles/checking-out-pull-requests-locally/ https://stackoverflow.com/questions/27567846/how-can-i-check-out-a-github-pull-request