Skip to content
This repository has been archived by the owner on Jan 2, 2019. It is now read-only.

Commit

Permalink
Error if somebody passes a pattern
Browse files Browse the repository at this point in the history
See #1
  • Loading branch information
R. Tyler Croy committed Jan 4, 2018
1 parent 735a5c5 commit 7cc1f3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vars/archiveArtifacts.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
def call(Map args) {
assert args.artifacts

if (args.artifacts =~ /\*/) {
error "archiveArtifacts with external storage doesn't support patterns right now"
}

String propertyName = 'hudson.model.DirectoryBrowserSupport.CSP'
/* Mess with Jenkins' Content-Security Policy settings to allow our
* redirects, gnarly
Expand Down

0 comments on commit 7cc1f3f

Please sign in to comment.