Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
[FIXED JENKINS-39532] Do not access the workspace for pipelines.
  • Loading branch information
uhafner committed Nov 30, 2016
1 parent 8e1fff1 commit f6cd428eb75e9edc493f8be79c4639742742a820
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/main/java/hudson/plugins/warnings/ParserConfiguration.java
@@ -124,6 +124,9 @@ public FormValidation doCheckPattern(@AncestorInPath final AbstractProject<?, ?>
@QueryParameter final String pattern) throws IOException {
FormValidation required = FormValidation.validateRequired(pattern);
if (required.kind == FormValidation.Kind.OK) {
if (project == null) { // there is no workspace in pipelines
return required;
}
return FilePath.validateFileMask(project.getSomeWorkspace(), pattern);
}
else {

0 comments on commit f6cd428

Please sign in to comment.