Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
[FIXED JENKINS-46965] Do not validate workspace if it does not exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Sep 20, 2017
1 parent 8736671 commit f5c478b
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/main/java/hudson/plugins/warnings/ParserConfiguration.java
Expand Up @@ -127,11 +127,17 @@ public FormValidation doCheckPattern(@AncestorInPath final AbstractProject<?, ?>
if (project == null) { // there is no workspace in pipelines
return required;
}
return FilePath.validateFileMask(project.getSomeWorkspace(), pattern);
}
else {
return required;
try {
FilePath workspace = project.getSomeWorkspace();
if (workspace != null && workspace.exists()) {
return FilePath.validateFileMask(workspace, pattern);
}
}
catch (InterruptedException e) {
// ignore
}
}
return required;
}
}
}
Expand Down

0 comments on commit f5c478b

Please sign in to comment.