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

Forbidden Files Not Working as Advertised

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • gerrit-trigger-plugin
    • Jenkins version 2.222.3
      gerrit-trigger plugin 2.30.5
      openjdk-8/jre
      java.runtime.version 1.8.0_242-b08
      OS: Debian 9

      Trying to implement a basic case of a document folder – any Gerrit patch set containing only documents should not trigger a job.  The document folder is cleverly named "doc" – any file not contained in this folder should trigger a job.

      Thus, a forbidden path of "doc/**" was added, along with a forbidden path of "/COMMIT_MSG" -  see config1 attachment.  This screenshot shows a file path of "**", but I have also tried without this path.  As mentioned above, if a file outside the doc folder is committed (with or without a document), then the job should start – thus "Disable Strict Forbidden File Verification" is enabled.  

      However, when a a document under the doc folder is uploaded, the job starts anyways.  Eg, a patch set containing only the file "doc/somedoc.html" triggers a new job.

            rsandell rsandell
            johnc John Cuder
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: