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

Build not being prevented to run when it is the first build of that branch

      I have a filter like this: 

      If the build is the first build of a given branch OR a change request/PR, the build gets triggered even if the conditions don't pass.

      On the log, I can see the following
      Matched included region:project-a/** with file path:project-a/Jenkinsfile

      But the PR doesn't have any change under project-a folder, and it still gets recognized as it has.

          [JENKINS-60882] Build not being prevented to run when it is the first build of that branch

          Felipe Santos created issue -
          Felipe Santos made changes -
          Description Original: I have a filter like this: 
          !image-2020-01-27-15-48-22-389.png|width=823,height=210!

          sIf the build is the first build of a given branch OR a change request/PR, the build get triggered even if the conditions doesn't pass.

          On log I can see the following
          Matched included region:project-a/** with file path:project-a/Jenkinsfile

          But the PR doesn't have any change under project-a folder, but it still gets recognized as it have.
          New: I have a filter like this: 
           !image-2020-01-27-15-48-22-389.png|width=823,height=210!

          If the build is the first build of a given branch OR a change request/PR, the build gets triggered even if the conditions don't pass.

          On the log, I can see the following
           Matched included region:project-a/** with file path:project-a/Jenkinsfile

          But the PR doesn't have any change under project-a folder, and it still gets recognized as it has.

            igalg Igal Gluh
            felipecassiors Felipe Santos
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: