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

‘Jenkinsfile’ not found when PR triggers a build with Bitbucket

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Jenkins 2.90, Bitbucket Branch Source 2.2.7

      Hi,

      I'm having an issue where webhooks from PRs are properly triggering, but failing to build with 'Jenkinsfile' not found errors.  The PR properly triggers the event, but the build fails due to 'Jenkinsfile' not found.  Running a manual re-scan properly finds the PR and Jenkinsfile allowing a succesful build.  Our Bitbucket Server is a cluster and possibly under load.  Based on similar issues, I wasn't sure if there was some sort of race condition on the cluster.

      Here's what is seen in the event log:

      [Fri Dec 01 12:27:47 EST 2017] Received com.cloudbees.jenkins.plugins.bitbucket.hooks.PullRequestHookProcessor$1 CREATED event from 51.16.28.5 ⇒ http://ci.the.url.com:8080/bitbucket-scmsource-hook/notify with timestamp Fri Dec 01 12:27:47 EST 2017
      Connecting to https://bitbucket.the.url.com using ci-vantage/******
      Repository type: Git
      Looking up VAN/microapi-personal for branches
      Checking branch develop from VAN/microapi-personal
      Checking branch release/1.0.0 from VAN/microapi-personal
      Checking branch master from VAN/microapi-personal
      
        3 branches were processed
      Looking up VAN/microapi-personal for pull requests
      Checking PR-87 from ~THEUSER/microapi-personal and branch develop
            ‘Jenkinsfile’ not found
          Skipped

            rsandell rsandell
            timdowney Tim Downey
            Votes:
            9 Vote for this issue
            Watchers:
            17 Start watching this issue

              Created:
              Updated: