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

bitbucket-webhooks Plugin wrong url

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      1.1.21

      Description

      I've created a Post Webhook in our bitbucket server to our jenkins server. At jenkins side I installed the Bitbucket plugin and checked "Build when a change is pushed to BitBucket".

      So now if I push sth to my Bitbucket repo, jenkins receives the payload and checks if a job matches. But it has an invalid url so the match will never work:

      Received Payload:

      Received commit hook notification : {"actor":{"username":"ck","displayName":"ck"},"repository":{"scmId":"git","project":{"key":"test","name":"test"},"slug":"testapp","links":{"self":[{"href":"http://localhost:7990/projects/test/repos/testapp/browse"}]},"public":false,"owner":{"username":"test","displayName":"test"},"fullName":"test/testapp","ownerName":"test"},"push":{"changes":[{"created":false,"closed":false,"new":{"type":"branch","name":"test/jenkins","target":{"type":"commit","hash":"81e2f7cf535bf7f5e5f52e98d0d42d8963fda9f8"}},"old":{"type":"branch","name":"test/jenkins","target":{"type":"commit","hash":"e092da2450432dd51f9145dbeb64f5229e04c46b"}}}]}}
      
      Nov 27, 2018 7:54:18 AM FINE com.cloudbees.jenkins.plugins.BitbucketJobProbe
      Trying to match ssh://git@someBitbucket:7999/proj/testapp.git<-->http://localhost:7990/proj/testapp
      

        Attachments

          Activity

          sikay25 Christoph Kellermeier created issue -
          sikay25 Christoph Kellermeier made changes -
          Field Original Value New Value
          Description I've created a Post Webhook in our bitbucket server to our jenkins server. At jenkins side I installed the Bitbucket plugin and checked "Build when a change is pushed to BitBucket".

          So now if I push sth to my Bitbucket repo, jenkins receives the payload and checks if a job matches. But it has an invalid url so the match will never work:

          Received Payload:
          {code:java}
          Received commit hook notification : {"actor":{"username":"ck","displayName":"ck"},"repository":{"scmId":"git","project":{"key":"test","name":"test"},"slug":"testapp","links":{"self":[{"href":"http://localhost:7990/projects/test/repos/testapp/browse"}]},"public":false,"owner":{"username":"test","displayName":"test"},"fullName":"test/testapp","ownerName":"test"},"push":{"changes":[{"created":false,"closed":false,"new":{"type":"branch","name":"test/jenkins","target":{"type":"commit","hash":"81e2f7cf535bf7f5e5f52e98d0d42d8963fda9f8"}},"old":{"type":"branch","name":"test/jenkins","target":{"type":"commit","hash":"e092da2450432dd51f9145dbeb64f5229e04c46b"}}}]}}
          {code}


          {code:java}
          Nov 27, 2018 7:54:18 AM FINE com.cloudbees.jenkins.plugins.BitbucketJobProbe
          Trying to match ssh://git@someBitbucket:7999/proj/someRepo.git&lt;--&gt;http://localhost:7990/proj/someRepo
          {code}

          I've created a Post Webhook in our bitbucket server to our jenkins server. At jenkins side I installed the Bitbucket plugin and checked "Build when a change is pushed to BitBucket".

          So now if I push sth to my Bitbucket repo, jenkins receives the payload and checks if a job matches. But it has an invalid url so the match will never work:

          Received Payload:
          {code:java}
          Received commit hook notification : {"actor":{"username":"ck","displayName":"ck"},"repository":{"scmId":"git","project":{"key":"test","name":"test"},"slug":"testapp","links":{"self":[{"href":"http://localhost:7990/projects/test/repos/testapp/browse"}]},"public":false,"owner":{"username":"test","displayName":"test"},"fullName":"test/testapp","ownerName":"test"},"push":{"changes":[{"created":false,"closed":false,"new":{"type":"branch","name":"test/jenkins","target":{"type":"commit","hash":"81e2f7cf535bf7f5e5f52e98d0d42d8963fda9f8"}},"old":{"type":"branch","name":"test/jenkins","target":{"type":"commit","hash":"e092da2450432dd51f9145dbeb64f5229e04c46b"}}}]}}
          {code}


          {code:java}
          Nov 27, 2018 7:54:18 AM FINE com.cloudbees.jenkins.plugins.BitbucketJobProbe
          Trying to match ssh://git@someBitbucket:7999/proj/testapp.git&lt;--&gt;http://localhost:7990/proj/testapp
          {code}

          tzach_solomon Tzach Solomon made changes -
          Assignee Tzach Solomon [ tzach_solomon ]
          tzach_solomon Tzach Solomon made changes -
          Released As 1.1.21
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Fixed but Unreleased [ 10203 ]
          tzach_solomon Tzach Solomon made changes -
          Status Fixed but Unreleased [ 10203 ] Resolved [ 5 ]
          tzach_solomon Tzach Solomon made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            Assignee:
            tzach_solomon Tzach Solomon
            Reporter:
            sikay25 Christoph Kellermeier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: