Skip to content

Commit

Permalink
Fixed 252
Browse files Browse the repository at this point in the history
   Splitting fix made for jacoco reports from Jenkins jenkinsci#98.
  • Loading branch information
Shah, Prince committed May 23, 2017
1 parent e2a0fe9 commit ffbd446
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Release Notes

## Release 0.3.8 (NOT RELEASED YET)

* [Fixed Issue 252][issue-252]

Splitting fix made for jacoco reports from Jenkins #98.

* [Fixed Issue 222][issue-222]

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package com.offbytwo.jenkins.model;

public class JacocoCoverageReport extends BaseModel {

private JacocoCoverageResult lineCoverage;
private JacocoCoverageResult classCoverage;
private JacocoCoverageResult complexityScore;
private JacocoCoverageResult instructionCoverage;
private JacocoCoverageResult branchCoverage;

public JacocoCoverageResult getLineCoverage() {
return lineCoverage;
}
public void setLineCoverage(JacocoCoverageResult lineCoverage) {
this.lineCoverage = lineCoverage;
}
public JacocoCoverageResult getClassCoverage() {
return classCoverage;
}
public void setClassCoverage(JacocoCoverageResult classCoverage) {
this.classCoverage = classCoverage;
}
public JacocoCoverageResult getComplexityScore() {
return complexityScore;
}
public void setComplexityScore(JacocoCoverageResult complexityScore) {
this.complexityScore = complexityScore;
}
public JacocoCoverageResult getInstructionCoverage() {
return instructionCoverage;
}
public void setInstructionCoverage(JacocoCoverageResult instructionCoverage) {
this.instructionCoverage = instructionCoverage;
}
public JacocoCoverageResult getBranchCoverage() {
return branchCoverage;
}
public void setBranchCoverage(JacocoCoverageResult branchCoverage) {
this.branchCoverage = branchCoverage;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
package com.offbytwo.jenkins.model;

public class JacocoCoverageResult {

private int covered;
private int missed;
private int percentage;
private int percentageFloat;
private int total;

public int getCovered() {
return covered;
}
public void setCovered(int covered) {
this.covered = covered;
}
public int getMissed() {
return missed;
}
public void setMissed(int missed) {
this.missed = missed;
}
public int getPercentage() {
return percentage;
}
public void setPercentage(int percentage) {
this.percentage = percentage;
}
public int getPercentageFloat() {
return percentageFloat;
}
public void setPercentageFloat(int percentageFloat) {
this.percentageFloat = percentageFloat;
}
public int getTotal() {
return total;
}
public void setTotal(int total) {
this.total = total;
}



}
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@ public MavenBuild(int number, String url) {
public MavenModule getMavenModule() throws IOException {
return client.get(this.getUrl() + "/mavenArtifacts/", MavenModule.class);
}

public JacocoCoverageReport getJacocoCodeCoverageReport() throws IOException {
return client.get(this.getUrl() + "/jacoco/", JacocoCoverageReport.class);
}
}

0 comments on commit ffbd446

Please sign in to comment.