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

Need a way of not triggering if certain files are touched in a commit

XMLWordPrintable

      In our setup, we sometimes need to push in a single commit changes which affect several folders. Each of these folders is connected to a different Gerrit Trigger-based job (using files filter). However, these jobs are downstream one of another in Jenkins, and use artifacts one of another. So it would be best if only the "upstream-est" job was triggered, and let Jenkins trigger the dependent downstream jobs via Jenkins dependency mechanisms. Therefore an additional parameter in the Gerrit Trigger plugin would be welcome, allowing "Forbidden Files" to be added to Project configuration. For example, if project B is downstream of project A, in project B, we could set as "forbidden files" the files of project A. This way, if a change affects a file in A AND B, A will get triggered, not B, thanks to the forbidden file option. Jenkins would have an internal downstream trigger of B after A is completed successfully.

            jyrkiput jyrkiput
            yannack yannack bbbb
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: