[JENKINS-73119] Catch the class not found exception #26
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
JENKINS-73119 Catch the class not found exception
If the folders plugin is not installed, jobs fail to start and report: "Exception evaluating if the gueue can run the task"
Once the class not found exception is caught, then the job runs as expected.
Users that need the fix before a release is available can download it from Artifactory and install it on their controller. If plugin installation manager tool is being used, then the syntax to use the pull request build is:
Testing done
Confirmed the failure by running Jenkins 2.426.3 with the build blocker plugin 165.v5ecb_fb_f61520 installed. I created a freestyle job and ran it. The run failed with the message "Exception evaluating if the gueue can run the task".
Confirmed the failure is resolved by installing the build of this commit and ran the same job without error. Confirmed that the class not found exception was written to the Jenkins logger when I enabled FINE logging for the BuildBlockerQueueTaskDispatcher. FINE logging is disabled by default, so the Jenkins log will not be cluttered by those exception messages unless an administrator specifically enables it.
Submitter checklist