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

Pull request not built when build status patch is applied

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      Jenkins 2.14
      bitbucket-branch-source-plugin from github master branch
    • Similar Issues:

      Description

      When user send pull request

      [Bitbucket] Notifying commit build result
      com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRequestException: HTTP request error. Status: 400: BAD REQUEST.
      {"error": {"fields": {"key": ["Ensure this value has at most 40 characters (it has 54)."]}, "message": "Bad request"}}
      	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.postRequest(BitbucketCloudApiClient.java:486)
      	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.postRequest(BitbucketCloudApiClient.java:513)
      	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.postBuildStatus(BitbucketCloudApiClient.java:303)
      	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketChangesetCommentNotifier.buildStatus(BitbucketChangesetCommentNotifier.java:49)
      	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketBuildStatusNotifications.createBuildCommitStatus(BitbucketBuildStatusNotifications.java:85)
      	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketBuildStatusNotifications.sendNotifications(BitbucketBuildStatusNotifications.java:171)
      	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketBuildStatusNotifications.access$000(BitbucketBuildStatusNotifications.java:60)
      	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketBuildStatusNotifications$JobCheckOutListener.onCheckout(BitbucketBuildStatusNotifications.java:190)
      	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:123)
      	at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:108)
      	at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:85)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:206)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:404)
      Finished: FAILURE
      

      PR link: https://bitbucket.org/XVM/xvm/pull-requests/288/battlelabels-descripton-typo/

      Full Log: http://ci.modxvm.com/job/XVM/job/demon2597%252Fbattlelabels-descripton-typo-1469180738999/1/console

        Attachments

          Issue Links

            Activity

            Hide
            amuniz Antonio Muñiz added a comment -

            Did you have the Jenkins root URL set to something that is not localhost?

            Show
            amuniz Antonio Muñiz added a comment - Did you have the Jenkins root URL set to something that is not localhost ?
            Hide
            mixaill Mikhail Paulyshka added a comment -

            Jenkins root URL set to "https://ci.modxvm.com".

            The problem occurs only with a pull requests. Commits in the repository branches going fine.

            Show
            mixaill Mikhail Paulyshka added a comment - Jenkins root URL set to "https://ci.modxvm.com". The problem occurs only with a pull requests. Commits in the repository branches going fine.
            Hide
            amuniz Antonio Muñiz added a comment - - edited

            Ok, I see Ensure this value has at most 40 characters (it has 54). The message needs to be shortened a bit, I didn't hit this before.

            Show
            amuniz Antonio Muñiz added a comment - - edited Ok, I see Ensure this value has at most 40 characters (it has 54). The message needs to be shortened a bit, I didn't hit this before.
            Show
            mixaill Mikhail Paulyshka added a comment - Fix submitted https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/15

              People

              • Assignee:
                amuniz Antonio Muñiz
                Reporter:
                mixaill Mikhail Paulyshka
              • Votes:
                2 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: