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

Jenkinsfile not found in PR on GitHub -- Does not meet criteria

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Sometimes, when we create PR on GitHub - it is ignored by Jenkins. I've tried to re-scan organization - and see in logs:

        Getting remote pull requests...
      
          Checking pull request #128
            ‘Jenkinsfile’ not found
          Does not meet criteria
      

      But Jenkinsfile is here! I see other bugs in your Jira and here is some additional information:

      • Repository is added to Jenkins via GitHub Organization Folder
      • We don't use forks
      • Commiter is a member of our organization and has full rights on this repository
      • Problem PRs are also very simple and doesn't touch Jenkinsfile at all
      • Source PR branch has Jenkinsfile
      • Branch which we want to merge - was created from source branch and also has Jenkinsfile
      • Jenkinsfile was not changed between merge commits
      • If I merge branches manually - result has Jenkinsfile
      • If we do merge on GitHub UI - result will have Jenkinsfile (and will be built)
      • If we recreate same pull request several times - it will be built

      And more logs:

      Examining our-organization/our-repo:  
      
      Checking branches...  
      Getting remote branches...  
        
      Checking branch master
            ‘Jenkinsfile’ found
          Met criteria
      No changes detected: master (still at 923197f48be5cd8296b8ca95bd72a4a830a474f4)    
      
      Checking branch develop
            ‘Jenkinsfile’ found
          Met criteria
      No changes detected: develop (still at 43c2cce36623a4af90b28d886dfb28ea8d813ab8)    
      
      Checking branch feature/198-video-verification
            ‘Jenkinsfile’ found
          Met criteria
      No changes detected: feature/198-video-verification (still at 9126f0c6958db3c712078ed0d2587e96004d27c6)  
      
      3 branches were processed  
      
      Checking pull-requests...  
      Getting remote pull requests...    
      
      Checking pull request #128
            ‘Jenkinsfile’ not found
          Does not meet criteria
      

      PR #128 - is between develop and feature/198-video-verification - and, as you can see, both have Jenkinsfile and were built successfully.

        Attachments

          Issue Links

            Activity

            soar Aleksey Smyrnov created issue -
            soar Aleksey Smyrnov made changes -
            Field Original Value New Value
            Description Sometimes, when we create PR on GitHub - it is ignored by Jenkins. I've tried to re-scan organization - and see in logs:
            {code:java}
              Getting remote pull requests...

                Checking pull request #128
                  ‘Jenkinsfile’ not found
                Does not meet criteria
            {code}
            But Jenkinsfile is here! I see other bugs in your Jira and here is some additional information:
             * Repository is added to Jenkins via GitHub Organization Folder
             * We don't use forks
             * Commiter is a member of our organization and has full rights on this repository
             * Problem PRs are also very simple and doesn't touch Jenkinsfile at all
             * Source PR branch has Jenkinsfile
             * Branch which we want to merge - was created from source branch and also has Jenkinsfile
             * Jenkinsfile was not changed between merge commits
             * If I merge branches manually - result has Jenkinsfile
             * If we do merge on GitHub UI - result will have Jenkinsfile (and will be built)
             * If we recreate same pull request several times - it will be built

            And more logs:
            {code:java}
            Examining our-organization/our-repo: Checking branches... Getting remote branches... Checking branch master
                  ‘Jenkinsfile’ found
                Met criteria
            No changes detected: master (still at 923197f48be5cd8296b8ca95bd72a4a830a474f4) Checking branch develop
                  ‘Jenkinsfile’ found
                Met criteria
            No changes detected: develop (still at 43c2cce36623a4af90b28d886dfb28ea8d813ab8) Checking branch feature/198-video-verification
                  ‘Jenkinsfile’ found
                Met criteria
            No changes detected: feature/198-video-verification (still at 9126f0c6958db3c712078ed0d2587e96004d27c6) 3 branches were processed Checking pull-requests... Getting remote pull requests... Checking pull request #128
                  ‘Jenkinsfile’ not found
                Does not meet criteria
            {code}
            PR #128 - is between develop and feature/198-video-verification - and, as you can see, both have Jenkinsfile and were built successfully.
            Sometimes, when we create PR on GitHub - it is ignored by Jenkins. I've tried to re-scan organization - and see in logs:
            {code:java}
              Getting remote pull requests...

                Checking pull request #128
                  ‘Jenkinsfile’ not found
                Does not meet criteria
            {code}
            But Jenkinsfile is here! I see other bugs in your Jira and here is some additional information:
             * Repository is added to Jenkins via GitHub Organization Folder
             * We don't use forks
             * Commiter is a member of our organization and has full rights on this repository
             * Problem PRs are also very simple and doesn't touch Jenkinsfile at all
             * Source PR branch has Jenkinsfile
             * Branch which we want to merge - was created from source branch and also has Jenkinsfile
             * Jenkinsfile was not changed between merge commits
             * If I merge branches manually - result has Jenkinsfile
             * If we do merge on GitHub UI - result will have Jenkinsfile (and will be built)
             * If we recreate same pull request several times - it will be built

            And more logs:
            {code:java}
            Examining our-organization/our-repo:

            Checking branches...
            Getting remote branches...
              
            Checking branch master
                  ‘Jenkinsfile’ found
                Met criteria
            No changes detected: master (still at 923197f48be5cd8296b8ca95bd72a4a830a474f4)

            Checking branch develop
                  ‘Jenkinsfile’ found
                Met criteria
            No changes detected: develop (still at 43c2cce36623a4af90b28d886dfb28ea8d813ab8)

            Checking branch feature/198-video-verification
                  ‘Jenkinsfile’ found
                Met criteria
            No changes detected: feature/198-video-verification (still at 9126f0c6958db3c712078ed0d2587e96004d27c6)

            3 branches were processed

            Checking pull-requests...
            Getting remote pull requests...

            Checking pull request #128
                  ‘Jenkinsfile’ not found
                Does not meet criteria
            {code}
            PR #128 - is between develop and feature/198-video-verification - and, as you can see, both have Jenkinsfile and were built successfully.
            jglick Jesse Glick made changes -
            Component/s github-branch-source-plugin [ 20858 ]
            Component/s github-api-plugin [ 17496 ]
            Component/s github-organization-folder-plugin [ 21427 ]
            Assignee Kohsuke Kawaguchi [ kohsuke ] Stephen Connolly [ stephenconnolly ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by INFRA-1956 [ INFRA-1956 ]
            batmat Baptiste Mathus made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            jbriden Jenn Briden made changes -
            Assignee Stephen Connolly [ stephenconnolly ] Vivek Pandey [ vivek ]
            vivek Vivek Pandey made changes -
            Assignee Vivek Pandey [ vivek ] rsandell [ rsandell ]
            abayer Andrew Bayer made changes -
            Priority Critical [ 2 ] Blocker [ 1 ]
            vivek Vivek Pandey made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            rsandell rsandell made changes -
            Remote Link This issue links to "PR 204 (Web Link)" [ 22412 ]
            jsoref Josh Soref made changes -
            Remote Link This issue links to "PR 223 (Web Link)" [ 22756 ]
            bitwiseman Liam Newman made changes -
            Link This issue is related to JENKINS-57411 [ JENKINS-57411 ]
            jsoref Josh Soref made changes -
            Summary Jenkinsfile not found in PR on GitHub Jenkinsfile not found in PR on GitHub -- Does not meet criteria
            bitwiseman Liam Newman made changes -
            Assignee rsandell [ rsandell ] Liam Newman [ bitwiseman ]
            jordanjennings Jordan Jennings made changes -
            Link This issue is related to JENKINS-57206 [ JENKINS-57206 ]
            kshultz Karl Shultz made changes -
            Link This issue is related to JENKINS-60353 [ JENKINS-60353 ]
            bitwiseman Liam Newman made changes -
            Remote Link This issue links to "PR 271 (Web Link)" [ 24356 ]
            bitwiseman Liam Newman made changes -
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Fixed but Unreleased [ 10203 ]
            bitwiseman Liam Newman made changes -
            Status Fixed but Unreleased [ 10203 ] Closed [ 6 ]
            bitwiseman Liam Newman made changes -
            Link This issue is duplicated by JENKINS-54403 [ JENKINS-54403 ]

              People

              Assignee:
              bitwiseman Liam Newman
              Reporter:
              soar Aleksey Smyrnov
              Votes:
              72 Vote for this issue
              Watchers:
              101 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: