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

Commit

Permalink
[FIXED JENKINS-39532] Do not access the workspace for pipelines.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Nov 30, 2016
1 parent 8e1fff1 commit f6cd428
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -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 {
Expand Down

0 comments on commit f6cd428

Please sign in to comment.