Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-72594

Allow file set exclusions

XMLWordPrintable

      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') 

       

            Unassigned Unassigned
            ygrek Maciej
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: