gradle-jenkins-jobdsl-plugin icon indicating copy to clipboard operation
gradle-jenkins-jobdsl-plugin copied to clipboard

Add more filter options

Open mnonnenmacher opened this issue 7 years ago • 2 comments

Currently jobs to process can only be filtered with a regex matching the full job name. Add more filter options:

  • Filter by folder, to only deploy jobs for a specific folder.
  • Filter by filename, to only deploy jobs from one file.

mnonnenmacher avatar Jul 04 '17 09:07 mnonnenmacher

Filter by folder, to only deploy jobs for a specific folder.

Can't this already be done by --filter "foldername/.*" (as job names may not contain /)?

sschuberth avatar Jul 26 '17 08:07 sschuberth

The problem with that is that it wouldn't create the folder so you would have to use something like --filter "foldername(/.*) which gets messy with nested folders.

mnonnenmacher avatar Jul 26 '17 09:07 mnonnenmacher