Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,17 @@
if (job == null) {
return ItemsErrorModel.EMPTY;
}
job.checkPermission(Job.BUILD);
try {
job.checkPermission(Job.BUILD);
} catch (org.springframework.security.access.AccessDeniedException e) {
// Write the exception to the logger, not to the Jenkins log.
//
// https://github.com/jenkinsci/git-parameter-plugin/issues/339
if (LOGGER.isLoggable(Level.FINE)) {
LOGGER.log(Level.FINE, job.getDisplayName() + " " + e.getMessage(), e);
}
return ItemsErrorModel.EMPTY;

Check warning on line 743 in src/main/java/net/uaznia/lukanus/hudson/plugins/gitparameter/GitParameterDefinition.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered lines

Lines 736-743 are not covered by tests
}

JobWrapper jobWrapper = JobWrapperFactory.createJobWrapper(job);

Expand Down