Skip to content

Calculate pass count and total count if they're missing from the Jenkins Api#187

Closed
tom-smalls wants to merge 1 commit into
jenkinsci:masterfrom
tom-smalls:master
Closed

Calculate pass count and total count if they're missing from the Jenkins Api#187
tom-smalls wants to merge 1 commit into
jenkinsci:masterfrom
tom-smalls:master

Conversation

@tom-smalls

Copy link
Copy Markdown
Contributor

Add passCount as an attribute of TestReport. As this is a new element of the api, attempt to calculate pass count if it is 0 as it may be that the user of the library is using an older jenkins instance so passCount may not be available. totalCount is no longer available on the api of new releases of Jenkins so attempt to calculate this if 0

… of the api, attempt to calculate pass count if it is 0 as it may be that the user of the library is using an older jenkins instance so passCount may not be available. totalCount is no longer available on the api of new releases of Jenkins so attempt to calculate this if 0
@tom-smalls

Copy link
Copy Markdown
Contributor Author

This is in relation to #184

@tom-smalls

Copy link
Copy Markdown
Contributor Author

Whilst this isn't the most ideal solution, I can't think of something more suitable unless the library is tied to specific Jenkins versions. Thoughts?

@tom-smalls tom-smalls closed this Oct 27, 2017
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

Successfully merging this pull request may close these issues.

1 participant