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

PR are not build if read access is not available on the Source branch

    Details

    • Similar Issues:

      Description

      When I try to initiate a build for the PR request, it shows

      Looking up MI/apis for branches
      Checking branch master from MI/apis
      Met criteria
      Looking up MI/apis for pull requests
      Checking PR from ~ABISHEK_MANOHARAN/apis and branch master
      Does not meet criteria
      

      Now, the credentials used in Jenkins for Bitbucket does not have permission to read "~ABISHEK_MANOHARAN/apis" repository, but it has the permissions to read/write on "MI/apis" repository.

      It's not possible to provide the credentials read access to all the repositories from which a pull request might come.

      Using the credentials I am able to view and approve the PR on the Bitbucket Server Web interface, so I think it should be possible to build with the PR from Jenkins as well.

      If, I give read access to "~ABISHEK_MANOHARAN/apis" repo, then it's building fine.

        Attachments

          Activity

          abishek3876 Abishek Manoharan created issue -
          zigarn Alexandre Garnier made changes -
          Field Original Value New Value
          Attachment dirty-fix-JENKINS-40465.patch [ 36121 ]
          jamesdumay James Dumay made changes -
          Assignee Antonio Muñiz [ amuniz ] Alexandre Garnier [ zigarn ]
          jamesdumay James Dumay made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          jamesdumay James Dumay made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]
          jamesdumay James Dumay made changes -
          Status In Review [ 10005 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]

            People

            • Assignee:
              zigarn Alexandre Garnier
              Reporter:
              abishek3876 Abishek Manoharan
            • Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: