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

Coveralls badge is displaying as 'unknown' #105

Open
hafeez1988 opened this issue Apr 23, 2020 · 0 comments
Open

Coveralls badge is displaying as 'unknown' #105

hafeez1988 opened this issue Apr 23, 2020 · 0 comments

Comments

@hafeez1988
Copy link

hafeez1988 commented Apr 23, 2020

I have developed a springboot application with Gradle. I have integrated Jenkins and now I'm trying to integrate code coverage into my project. I was using JaCoCo coveralls with Jenkins CI for the purpose.

Gradle plugin

plugins {
   id 'com.github.kt3k.coveralls' version '2.10.1'
}

jacocoTestReport {
  reports {
    xml.enabled = true
    html.enabled = true
  }
  getClassDirectories().setFrom(classDirectories.files.collect {
        fileTree(dir: it,
                exclude: [
                '**/BmsService*'])
  })
}

And the Jenkins job invokes the following JaCoCo test command.
sh "gradle clean test jacocoTestReport coveralls"

My Jenkins build gets successful and the data is being sent to https://coveralls.io successfully.

My question is: if I do a build with a feature branch (except master), in coveralls.io the badge is not displaying properly and even the 'committed by' column is empty as well. My repository was hosted in GitHub.

Screenshot 2020-04-22 at 18 00 28

Screenshot 2020-04-22 at 18 00 47

Any help would be grateful!

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

1 participant