-
New Feature
-
Resolution: Unresolved
-
Minor
We use text-finder-plugin in Jenkins pipeline to search for strings not allowed in production .env files in the whole project, so we set the `fileSet` path to */.env.
Currently plugin doesn't allow us to ignore few .env files that are test or local specific. We don't want our build to fail if those test .env files contain forbidden text.
It could be very useful to introduce an exclusion path parameter that would accept array of exceptions for the main fileSet parameter.
Example;
textFinder( regexp: '-(snapshot|rc|devel)', fileSet: '**/*.env', fileSetExclude: ['**/dev/.env', '**/test/.env'], buildResult: 'UNSTABLE')