Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

JENKINS-49823 - Ignore non existing class directory #100

Merged
merged 1 commit into from
Sep 19, 2018
Merged

JENKINS-49823 - Ignore non existing class directory #100

merged 1 commit into from
Sep 19, 2018

Conversation

michbeck100
Copy link
Contributor

When using a Jenkins pipeline for multiple projects, there might not always be a classes directory (e.g. on pom-only projects). This PR ignores non-existing class directories.

@centic9
Copy link
Member

centic9 commented Sep 13, 2018

In hudson/plugins/jacoco/JacocoBuildAction.java:342 there is no check for null done currently, so we would run into a NullPointerException there, or?

Can you guard against this there as well?

See the new test in the branch at https://github.com/jenkinsci/jacoco-plugin/tree/michbeck100-JENKINS-49823 for a reproducer.

@ruckc
Copy link

ruckc commented Sep 17, 2018

I tested this PR out and it appears to fix the issue i'm having in a multibranch pipeline project that had upgraded to 3.0.1

@centic9 centic9 merged commit 3b8a81f into jenkinsci:master Sep 19, 2018
centic9 added a commit that referenced this pull request Sep 19, 2018
Fix possible NullPointerException introduced via PR #100
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants