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

Fails when notifying for merged PR build

XMLWordPrintable

      Flagged as minor because one workaround is just not to merge your PRs before building (losing the functionality of testing the merge result also builds). There may also be a way to tell the jenkinsfile to only notify if it's not a merged PR build.

      The Bitbucket Build Status Notifier Plugin fails when building a PR with the "Merging the pull request with the current target branch revision" PR policy, with the following error:

      [Bitbucket] Notifying pull request build result
      [Bitbucket] Build result notified
      Also:   java.lang.Exception: None or multiple repos
      java.lang.Exception: None or multiple repos
      	at org.jenkinsci.plugins.bitbucket.scm.GitScmAdapter.getCommitRepoMap(GitScmAdapter.java:53)
      	at org.jenkinsci.plugins.bitbucket.BitbucketBuildStatusHelper.createBuildStatusResources(BitbucketBuildStatusHelper.java:87)
      	at org.jenkinsci.plugins.bitbucket.BitbucketBuildStatusHelper.createBuildStatusResources(BitbucketBuildStatusHelper.java:140)
      	at org.jenkinsci.plugins.bitbucket.BitbucketBuildStatusHelper.notifyBuildStatus(BitbucketBuildStatusHelper.java:231)
      	at org.jenkinsci.plugins.bitbucket.BitbucketBuildStatusNotifierStep$Execution.run(BitbucketBuildStatusNotifierStep.java:206)
      	at org.jenkinsci.plugins.bitbucket.BitbucketBuildStatusNotifierStep$Execution.run(BitbucketBuildStatusNotifierStep.java:152)
      	at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
      	at hudson.security.ACL.impersonate(ACL.java:290)
      	at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      	at java.util.concurrent.FutureTask.run(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at java.lang.Thread.run(Unknown Source)
      Finished: FAILURE
      

      I wonder if because the merged result does not exist in the repo it is returning no results when it searches for the repo?

            flagbit Antonio Mansilla
            ironsean Sean MacKay
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: