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

userFilter and pathFilter not respected, infrequently



    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • p4-plugin
    • Jenkins 2.277.4
      P4 Plugin 1.11.5


      We have a multibranch pipeline configured with polling filters configured.  The branches come for the Helix Branch depot paths.

      To prevent builds on the service account as well as version files that are updated post build. 

      A sample looks as follows:

      // Filter to prevent infinite loop of builds
             filter: [
                      userFilter('p4_service_account'),                                                              pathFilter("${PERFORCE_PATH}/${env.version_file}"),                                                                                       pathFilter("${PERFORCE_PATH}/${JENKINSFILE_NAME}")

      The env.version_file comes from a shared library, while PERFORCE_PATH is defined in the stage that identifies the branch.  

      We have many branches and versions that are updated multiple times a day.  We see this infrequently, <5% of the time.

      Now, the change that triggers this build is submitted by the service account and is mapped to the version_file, so neither of the filters is actually working

      p4 describe 123
      Change 123 by p4_service_account@BUILD_XYZ on 2021/05/25 13:23:29        Jenkins changed version to buildxyx-
              See https://jenkinsurl/job/ for detailsAffected files ...... //.../version_file#6 editDifferences ...

      Jenkins polling log confirms the above as does the change log. 

      It seems most prevalent when a new branch is created and after a failing build occurs, but my inability to reproduce this is such that I can't narrow down the steps.



          There are no comments yet on this issue.


            Unassigned Unassigned
            mihajlotomic Mihajlo
            0 Vote for this issue
            1 Start watching this issue