trouble with Bitbucket Branch Source Plugin

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

trouble with Bitbucket Branch Source Plugin

i.kanis@betterfly-tourism.com
Hello,

I am having trouble setting up trigger of build after a push to Bitbucket. It happens on Jenkins version 2.73.3 (LTS)and 2.91 with Bitbucket Branch Source Plugin version 2.2.7.

A webhook is registered on Bitbucket when I create a Bitbucket Team/Project, that's good. However I am not seeing anything on the custom logger of com.cloudbees.jenkins.plugins.bitbucket.hooks for a push from Bitbucket.

To investigate further I setup the access logging as described at the bottom of https://support.cloudbees.com/hc/en-us/articles/115000051112

I get the following in the log following push "POST /bitbucket-scmsource-hook/ HTTP/1.1" 403 406...". I am not too sure what the log format is, but is seems like 403 indicates and error.

Is there anything I can do to assist in finding the problem?

Thanks in advance for any suggestions.

Ivan


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/657858251.13267969.1511280056583.JavaMail.zimbra%40betterfly-tourism.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: trouble with Bitbucket Branch Source Plugin

itchymuzzle
Not an answer to your question, but to get to your issue you must have gotten past the one I am having.  Can you take a look at my question? [https://groups.google.com/forum/#!topic/jenkinsci-users/n3JaXcXFzVs]  Thanks.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f77cf19d-5351-499b-9fd1-38e624e64dac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: trouble with Bitbucket Branch Source Plugin

Dan Tran
Hi

did it work before 2.73.3??

-D

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1669c2a8-00de-4e27-9b7b-7bd1093b6c76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: trouble with Bitbucket Branch Source Plugin

i.kanis@betterfly-tourism.com
Hi,

I have tried 2.46.3, 2.60.3 and 2.73.2 without much luck. I tried a very simple setup with a project DUMMY (key DUM) with one repo git 'foo'. I ended up with the following Jenkinsfile:

pipeline {
        agent any
        triggers {
                pollSCM ''
        }
        stages {
                stage('Commit') {
                        steps {
                                checkout scm
...

The payload that the BB Webhook is sending to Jenkins seems OK:

{"actor":{"username":"ikanis","displayName":"Ivan Kanis"},"repository":{"scmId":"git","project":{"key":"DUM","name":"DUMMY"},"slug":"foo","links":{"self":[{"href":"https://bb/blablaDUM/repos/foo/browse"}]},"ownerName":"DUM","public":false,"owner":{"username":"DUM","displayName":"DUM"},"fullName":"DUM/foo"},"push":{"changes":[{"created":false,"closed":false,"new":{"type":"branch","name":"master","target":{"type":"commit","hash":"fa101eedb37a6bd876f47ea35e368fa91063c883"}},"old":{"type":"branch","name":"master","target":{"type":"commit","hash":"8b1804696297bc0167a57c27acce87572864f962"}}}]}}

I still don't get a build triggered on a git push.

The only thing that looks odd is an error in the configuration of the repo 'foo'. It says:

"HTTP ERROR 403
Problem accessing /job/d/job/foo/descriptorByName/com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource/fillRepositoryItems. Reason:
Forbidden" (I have attached a screeshot.)

I might have to debug Jenkins tomorrow. Could anyone give me pointers to which functions I need to look at?

Have a nice day,

Ivan



----- Mail original -----
De: "Dan Tran" <[hidden email]>
À: "jenkinsci-users" <[hidden email]>
Envoyé: Mercredi 22 Novembre 2017 01:26:30
Objet: Re: trouble with Bitbucket Branch Source Plugin

Hi

did it work before 2.73.3??

-D

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1669c2a8-00de-4e27-9b7b-7bd1093b6c76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1435141698.13993169.1511454681352.JavaMail.zimbra%40betterfly-tourism.com.
For more options, visit https://groups.google.com/d/optout.

Screenshot-2017-11-23 foo Config [Jenkins].png (29K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: trouble with Bitbucket Branch Source Plugin

Young Lee
Forgive me for asking, but did you verify you have access to the stash repo with the same credentials?

On Thursday, November 23, 2017 at 9:22:39 AM UTC-8, [hidden email] wrote:
Hi,

I have tried 2.46.3, 2.60.3 and 2.73.2 without much luck. I tried a very simple setup with a project DUMMY (key DUM) with one repo git 'foo'. I ended up with the following Jenkinsfile:

pipeline {
        agent any
        triggers {
                pollSCM ''
        }
        stages {
                stage('Commit') {
                        steps {
                                checkout scm
...

The payload that the BB Webhook is sending to Jenkins seems OK:

{"actor":{"username":"ikanis","displayName":"Ivan Kanis"},"repository":{"scmId":"git","project":{"key":"DUM","name":"DUMMY"},"slug":"foo","links":{"self":[{"href":"<a href="https://bb/blablaDUM/repos/foo/browse" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fbb%2FblablaDUM%2Frepos%2Ffoo%2Fbrowse\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFcnDxiJuDKcNfHSyo-d737Y_-9HQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fbb%2FblablaDUM%2Frepos%2Ffoo%2Fbrowse\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFcnDxiJuDKcNfHSyo-d737Y_-9HQ&#39;;return true;">https://bb/blablaDUM/repos/foo/browse"}]},"ownerName":"DUM","public":false,"owner":{"username":"DUM","displayName":"DUM"},"fullName":"DUM/foo"},"push":{"changes":[{"created":false,"closed":false,"new":{"type":"branch","name":"master","target":{"type":"commit","hash":"fa101eedb37a6bd876f47ea35e368fa91063c883"}},"old":{"type":"branch","name":"master","target":{"type":"commit","hash":"8b1804696297bc0167a57c27acce87572864f962"}}}]}}

I still don't get a build triggered on a git push.

The only thing that looks odd is an error in the configuration of the repo 'foo'. It says:

"HTTP ERROR 403
Problem accessing /job/d/job/foo/descriptorByName/com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource/fillRepositoryItems. Reason:
Forbidden" (I have attached a screeshot.)

I might have to debug Jenkins tomorrow. Could anyone give me pointers to which functions I need to look at?

Have a nice day,

Ivan



----- Mail original -----
De: "Dan Tran" <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="xIA_lfWIBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">dan...@...>
À: "jenkinsci-users" <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="xIA_lfWIBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com>
Envoyé: Mercredi 22 Novembre 2017 01:26:30
Objet: Re: trouble with Bitbucket Branch Source Plugin

Hi

did it work before 2.73.3??

-D

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="xIA_lfWIBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/1669c2a8-00de-4e27-9b7b-7bd1093b6c76%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/1669c2a8-00de-4e27-9b7b-7bd1093b6c76%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/1669c2a8-00de-4e27-9b7b-7bd1093b6c76%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/1669c2a8-00de-4e27-9b7b-7bd1093b6c76%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d8793ce3-638f-4211-9b86-f9351bebf40c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: trouble with Bitbucket Branch Source Plugin

Dan Tran
bitbucket-webhook 1.6 reportedly broken   see https://github.com/Eernie/bitbucket-webhooks-plugin/pull/71#issuecomment-346656045

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2314bf2e-079f-4d12-9386-0f551ab63519%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: trouble with Bitbucket Branch Source Plugin

Joseph P
Yes please downgrade to 1.5.2 Bitbucket webhook plugin while we are looking into a fix

By uninstalling via Manage add-ons link and then choose upload add-on and put in the URL below
https://marketplace.atlassian.com/download/plugins/nl.topicus.bitbucket.bitbucket-webhooks/version/100500110

Docs from Atlassian:
https://confluence.atlassian.com/upm/uninstalling-add-ons-273875709.html#Uninstallingadd-ons-Uninstallinganadd-on
https://confluence.atlassian.com/upm/installing-add-ons-273875715.html#Installingadd-ons-Installingbyfileupload

Terribly sorry for not catching it before releasing :|

Den fredag den 24. november 2017 kl. 07.39.43 UTC+1 skrev Dan Tran:
bitbucket-webhook 1.6 reportedly broken   see <a href="https://github.com/Eernie/bitbucket-webhooks-plugin/pull/71#issuecomment-346656045" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FEernie%2Fbitbucket-webhooks-plugin%2Fpull%2F71%23issuecomment-346656045\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFLKJ4Xj2r4ohcYD6lBSFfvQ6v7gA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FEernie%2Fbitbucket-webhooks-plugin%2Fpull%2F71%23issuecomment-346656045\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFLKJ4Xj2r4ohcYD6lBSFfvQ6v7gA&#39;;return true;">https://github.com/Eernie/bitbucket-webhooks-plugin/pull/71#issuecomment-346656045

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b04b7077-026a-4fb6-a710-0eb523239406%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: trouble with Bitbucket Branch Source Plugin

i.kanis@betterfly-tourism.com
In reply to this post by Dan Tran
Hi,

We are using 1.5.4.

----- Mail original -----
De: "Dan Tran" <[hidden email]>
À: "jenkinsci-users" <[hidden email]>
Envoyé: Vendredi 24 Novembre 2017 07:39:42
Objet: Re: trouble with Bitbucket Branch Source Plugin

bitbucket-webhook 1.6 reportedly broken  
 see https://github.com/Eernie/bitbucket-webhooks-plugin/pull/71#issuecomment-346656045

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2314bf2e-079f-4d12-9386-0f551ab63519%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1080525576.14033639.1511512250656.JavaMail.zimbra%40betterfly-tourism.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: trouble with Bitbucket Branch Source Plugin

i.kanis@betterfly-tourism.com
In reply to this post by Young Lee
Hi Young Lee,

I have a credential user/password that has access to the Bitbucket repo. Did I understand your question correctly?

Ivan

----- Mail original -----
De: "Young Lee" <[hidden email]>
À: "jenkinsci-users" <[hidden email]>
Envoyé: Jeudi 23 Novembre 2017 21:35:34
Objet: Re: trouble with Bitbucket Branch Source Plugin

Forgive me for asking, but did you verify you have access to the stash repo
with the same credentials?

On Thursday, November 23, 2017 at 9:22:39 AM UTC-8,
[hidden email] wrote:

>
> Hi,
>
> I have tried 2.46.3, 2.60.3 and 2.73.2 without much luck. I tried a very
> simple setup with a project DUMMY (key DUM) with one repo git 'foo'. I
> ended up with the following Jenkinsfile:
>
> pipeline {
>         agent any
>         triggers {
>                 pollSCM ''
>         }
>         stages {
>                 stage('Commit') {
>                         steps {
>                                 checkout scm
> ...
>
> The payload that the BB Webhook is sending to Jenkins seems OK:
>
> {"actor":{"username":"ikanis","displayName":"Ivan
> Kanis"},"repository":{"scmId":"git","project":{"key":"DUM","name":"DUMMY"},"slug":"foo","links":{"self":[{"href":"
> https://bb/blablaDUM/repos/foo/browse"}]},"ownerName":"DUM","public":false,"owner":{"username":"DUM","displayName":"DUM"},"fullName":"DUM/foo"},"push":{"changes":[{"created":false,"closed":false,"new":{"type":"branch","name":"master","target":{"type":"commit","hash":"fa101eedb37a6bd876f47ea35e368fa91063c883"}},"old":{"type":"branch","name":"master","target":{"type":"commit","hash":"8b1804696297bc0167a57c27acce87572864f962"}}}]}}
>
>
> I still don't get a build triggered on a git push.
>
> The only thing that looks odd is an error in the configuration of the repo
> 'foo'. It says:
>
> "HTTP ERROR 403
> Problem accessing
> /job/d/job/foo/descriptorByName/com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource/fillRepositoryItems.
> Reason:
> Forbidden" (I have attached a screeshot.)
>
> I might have to debug Jenkins tomorrow. Could anyone give me pointers to
> which functions I need to look at?
>
> Have a nice day,
>
> Ivan
>
>
>
> ----- Mail original -----
> De: "Dan Tran" <[hidden email] <javascript:>>
> À: "jenkinsci-users" <[hidden email] <javascript:>>
> Envoyé: Mercredi 22 Novembre 2017 01:26:30
> Objet: Re: trouble with Bitbucket Branch Source Plugin
>
> Hi
>
> did it work before 2.73.3??
>
> -D
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [hidden email] <javascript:>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/1669c2a8-00de-4e27-9b7b-7bd1093b6c76%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d8793ce3-638f-4211-9b86-f9351bebf40c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/509419574.14035072.1511512441508.JavaMail.zimbra%40betterfly-tourism.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: trouble with Bitbucket Branch Source Plugin

i.kanis@betterfly-tourism.com
In reply to this post by Joseph P
Hi,

I have dowgraded to 1.5.2 and still not getting a build trigger. I am using 'Bitbucket Server Webhook to Jenkins' as a workaround.

Ivan

----- Mail original -----
De: "Joseph P" <[hidden email]>
À: "jenkinsci-users" <[hidden email]>
Envoyé: Vendredi 24 Novembre 2017 08:24:30
Objet: Re: trouble with Bitbucket Branch Source Plugin

Yes please downgrade to 1.5.2 Bitbucket webhook plugin while we are looking
into a fix

By uninstalling via Manage add-ons link and then choose upload add-on and
put in the URL below
https://marketplace.atlassian.com/download/plugins/nl.topicus.bitbucket.bitbucket-webhooks/version/100500110

Docs from Atlassian:
https://confluence.atlassian.com/upm/uninstalling-add-ons-273875709.html#Uninstallingadd-ons-Uninstallinganadd-on
https://confluence.atlassian.com/upm/installing-add-ons-273875715.html#Installingadd-ons-Installingbyfileupload

Terribly sorry for not catching it before releasing :|

Den fredag den 24. november 2017 kl. 07.39.43 UTC+1 skrev Dan Tran:
>
> bitbucket-webhook 1.6 reportedly broken   see
> https://github.com/Eernie/bitbucket-webhooks-plugin/pull/71#issuecomment-346656045

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b04b7077-026a-4fb6-a710-0eb523239406%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/647965740.14097823.1511519588075.JavaMail.zimbra%40betterfly-tourism.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: trouble with Bitbucket Branch Source Plugin

Young Lee
In reply to this post by i.kanis@betterfly-tourism.com
I previously had installed Post Webhooks for Bitbucket v1.6.0 and reported issues with `PullRequestEvents` not being submitted.

A downgrade to v1.5.2 resolved my issues.

My setup is Jenkins LTS 2.73.3,  bitbucket branch source plugin 2.2.7, and Post webhooks for Bitbucket v1.5.2.  This combo works for us.

BTW: here is the thread where I reported the issue

https://groups.google.com/forum/?nomobile=true#!topic/jenkinsci-users/AZi6_kcr2sI

On Friday, November 24, 2017 at 1:34:05 AM UTC-8, [hidden email] wrote:
Hi Young Lee,

I have a credential user/password that has access to the Bitbucket repo. Did I understand your question correctly?

Ivan

----- Mail original -----
De: "Young Lee" <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="n47rXfi9BAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">you...@...>
À: "jenkinsci-users" <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="n47rXfi9BAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com>
Envoyé: Jeudi 23 Novembre 2017 21:35:34
Objet: Re: trouble with Bitbucket Branch Source Plugin

Forgive me for asking, but did you verify you have access to the stash repo
with the same credentials?

On Thursday, November 23, 2017 at 9:22:39 AM UTC-8,
[hidden email] wrote:

>
> Hi,
>
> I have tried 2.46.3, 2.60.3 and 2.73.2 without much luck. I tried a very
> simple setup with a project DUMMY (key DUM) with one repo git 'foo'. I
> ended up with the following Jenkinsfile:
>
> pipeline {
>         agent any
>         triggers {
>                 pollSCM ''
>         }
>         stages {
>                 stage('Commit') {
>                         steps {
>                                 checkout scm
> ...
>
> The payload that the BB Webhook is sending to Jenkins seems OK:
>
> {"actor":{"username":"ikanis","displayName":"Ivan
> Kanis"},"repository":{"scmId":"git","project":{"key":"DUM","name":"DUMMY"},"slug":"foo","links":{"self":[{"href":"
> <a href="https://bb/blablaDUM/repos/foo/browse" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fbb%2FblablaDUM%2Frepos%2Ffoo%2Fbrowse\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFcnDxiJuDKcNfHSyo-d737Y_-9HQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fbb%2FblablaDUM%2Frepos%2Ffoo%2Fbrowse\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFcnDxiJuDKcNfHSyo-d737Y_-9HQ&#39;;return true;">https://bb/blablaDUM/repos/foo/browse"}]},"ownerName":"DUM","public":false,"owner":{"username":"DUM","displayName":"DUM"},"fullName":"DUM/foo"},"push":{"changes":[{"created":false,"closed":false,"new":{"type":"branch","name":"master","target":{"type":"commit","hash":"fa101eedb37a6bd876f47ea35e368fa91063c883"}},"old":{"type":"branch","name":"master","target":{"type":"commit","hash":"8b1804696297bc0167a57c27acce87572864f962"}}}]}}
>
>
> I still don't get a build triggered on a git push.
>
> The only thing that looks odd is an error in the configuration of the repo
> 'foo'. It says:
>
> "HTTP ERROR 403
> Problem accessing
> /job/d/job/foo/descriptorByName/com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource/fillRepositoryItems.
> Reason:
> Forbidden" (I have attached a screeshot.)
>
> I might have to debug Jenkins tomorrow. Could anyone give me pointers to
> which functions I need to look at?
>
> Have a nice day,
>
> Ivan
>
>
>
> ----- Mail original -----
> De: "Dan Tran" <[hidden email] <javascript:>>
> À: "jenkinsci-users" <[hidden email] <javascript:>>
> Envoyé: Mercredi 22 Novembre 2017 01:26:30
> Objet: Re: trouble with Bitbucket Branch Source Plugin
>
> Hi
>
> did it work before 2.73.3??
>
> -D
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-use...@googlegroups.com <javascript:>.
> To view this discussion on the web visit
> <a href="https://groups.google.com/d/msgid/jenkinsci-users/1669c2a8-00de-4e27-9b7b-7bd1093b6c76%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/1669c2a8-00de-4e27-9b7b-7bd1093b6c76%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/1669c2a8-00de-4e27-9b7b-7bd1093b6c76%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/1669c2a8-00de-4e27-9b7b-7bd1093b6c76%40googlegroups.com.
>
> For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="n47rXfi9BAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/d8793ce3-638f-4211-9b86-f9351bebf40c%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/d8793ce3-638f-4211-9b86-f9351bebf40c%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/d8793ce3-638f-4211-9b86-f9351bebf40c%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/d8793ce3-638f-4211-9b86-f9351bebf40c%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0362264a-2749-40fc-8161-907eb763467a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: trouble with Bitbucket Branch Source Plugin

Joseph P
In reply to this post by i.kanis@betterfly-tourism.com
Have you enabled manage hook inside Jenkins system configuration in Bitbucket section? Or have you added the Jenkins webhook address inside the Repository settings under Post webhooks (this is basically what Manage hooks does)

Den fredag den 24. november 2017 kl. 11.33.38 UTC+1 skrev [hidden email]:
Hi,

I have dowgraded to 1.5.2 and still not getting a build trigger. I am using 'Bitbucket Server Webhook to Jenkins' as a workaround.

Ivan

----- Mail original -----
De: "Joseph P" <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="xqU_WDjBBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jose...@...>
À: "jenkinsci-users" <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="xqU_WDjBBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com>
Envoyé: Vendredi 24 Novembre 2017 08:24:30
Objet: Re: trouble with Bitbucket Branch Source Plugin

Yes please downgrade to 1.5.2 Bitbucket webhook plugin while we are looking
into a fix

By uninstalling via Manage add-ons link and then choose upload add-on and
put in the URL below
<a href="https://marketplace.atlassian.com/download/plugins/nl.topicus.bitbucket.bitbucket-webhooks/version/100500110" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fmarketplace.atlassian.com%2Fdownload%2Fplugins%2Fnl.topicus.bitbucket.bitbucket-webhooks%2Fversion%2F100500110\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHBATLaEmbXJwrGSigtFsN6W7NYrQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fmarketplace.atlassian.com%2Fdownload%2Fplugins%2Fnl.topicus.bitbucket.bitbucket-webhooks%2Fversion%2F100500110\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHBATLaEmbXJwrGSigtFsN6W7NYrQ&#39;;return true;">https://marketplace.atlassian.com/download/plugins/nl.topicus.bitbucket.bitbucket-webhooks/version/100500110

Docs from Atlassian:
<a href="https://confluence.atlassian.com/upm/uninstalling-add-ons-273875709.html#Uninstallingadd-ons-Uninstallinganadd-on" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fconfluence.atlassian.com%2Fupm%2Funinstalling-add-ons-273875709.html%23Uninstallingadd-ons-Uninstallinganadd-on\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG-y6NE11aLLgMGMbn1EFThOCii0w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fconfluence.atlassian.com%2Fupm%2Funinstalling-add-ons-273875709.html%23Uninstallingadd-ons-Uninstallinganadd-on\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG-y6NE11aLLgMGMbn1EFThOCii0w&#39;;return true;">https://confluence.atlassian.com/upm/uninstalling-add-ons-273875709.html#Uninstallingadd-ons-Uninstallinganadd-on
<a href="https://confluence.atlassian.com/upm/installing-add-ons-273875715.html#Installingadd-ons-Installingbyfileupload" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fconfluence.atlassian.com%2Fupm%2Finstalling-add-ons-273875715.html%23Installingadd-ons-Installingbyfileupload\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH8A_-ajFUVRIsFeLx2GmumO0-MgA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fconfluence.atlassian.com%2Fupm%2Finstalling-add-ons-273875715.html%23Installingadd-ons-Installingbyfileupload\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH8A_-ajFUVRIsFeLx2GmumO0-MgA&#39;;return true;">https://confluence.atlassian.com/upm/installing-add-ons-273875715.html#Installingadd-ons-Installingbyfileupload

Terribly sorry for not catching it before releasing :|

Den fredag den 24. november 2017 kl. 07.39.43 UTC+1 skrev Dan Tran:
>
> bitbucket-webhook 1.6 reportedly broken   see
> <a href="https://github.com/Eernie/bitbucket-webhooks-plugin/pull/71#issuecomment-346656045" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FEernie%2Fbitbucket-webhooks-plugin%2Fpull%2F71%23issuecomment-346656045\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFLKJ4Xj2r4ohcYD6lBSFfvQ6v7gA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FEernie%2Fbitbucket-webhooks-plugin%2Fpull%2F71%23issuecomment-346656045\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFLKJ4Xj2r4ohcYD6lBSFfvQ6v7gA&#39;;return true;">https://github.com/Eernie/bitbucket-webhooks-plugin/pull/71#issuecomment-346656045

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="xqU_WDjBBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/b04b7077-026a-4fb6-a710-0eb523239406%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/b04b7077-026a-4fb6-a710-0eb523239406%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/b04b7077-026a-4fb6-a710-0eb523239406%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/b04b7077-026a-4fb6-a710-0eb523239406%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/165af576-8073-4bf9-963f-e9ecb960f5d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: trouble with Bitbucket Branch Source Plugin

Joseph P
In reply to this post by i.kanis@betterfly-tourism.com
Released a fix for PR events not working: https://marketplace.atlassian.com/plugins/nl.topicus.bitbucket.bitbucket-webhooks/versions#b100600100

Den tirsdag den 21. november 2017 kl. 21.50.31 UTC+1 skrev [hidden email]:
Hello,

I am having trouble setting up trigger of build after a push to Bitbucket. It happens on Jenkins version 2.73.3 (LTS)and 2.91 with Bitbucket Branch Source Plugin version 2.2.7.

A webhook is registered on Bitbucket when I create a Bitbucket Team/Project, that's good. However I am not seeing anything on the custom logger of com.cloudbees.jenkins.plugins.bitbucket.hooks for a push from Bitbucket.

To investigate further I setup the access logging as described at the bottom of <a href="https://support.cloudbees.com/hc/en-us/articles/115000051112" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fsupport.cloudbees.com%2Fhc%2Fen-us%2Farticles%2F115000051112\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF2i1BUEN4iMVs-A2MtrXW2LnFEAA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fsupport.cloudbees.com%2Fhc%2Fen-us%2Farticles%2F115000051112\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF2i1BUEN4iMVs-A2MtrXW2LnFEAA&#39;;return true;">https://support.cloudbees.com/hc/en-us/articles/115000051112

I get the following in the log following push "POST /bitbucket-scmsource-hook/ HTTP/1.1" 403 406...". I am not too sure what the log format is, but is seems like 403 indicates and error.

Is there anything I can do to assist in finding the problem?

Thanks in advance for any suggestions.

Ivan


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/bba1a876-d65b-44ea-bf1b-c2d5cabd0b0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: trouble with Bitbucket Branch Source Plugin

i.kanis@betterfly-tourism.com
In reply to this post by itchymuzzle
Hi,

You need to add a credential with Bitbucket user/password. It's documented here:

https://github.com/jenkinsci/credentials-plugin/blob/master/docs/user.adoc

Ivan

----- Mail original -----
De: "itchymuzzle" <[hidden email]>
À: "jenkinsci-users" <[hidden email]>
Envoyé: Mardi 21 Novembre 2017 23:44:05
Objet: Re: trouble with Bitbucket Branch Source Plugin

Not an answer to your question, but to get to your issue you must have
gotten past the one I am having.  Can you take a look at my question?
[https://groups.google.com/forum/#!topic/jenkinsci-users/n3JaXcXFzVs]  
Thanks.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f77cf19d-5351-499b-9fd1-38e624e64dac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2036178316.15747076.1512376160399.JavaMail.zimbra%40betterfly-tourism.com.
For more options, visit https://groups.google.com/d/optout.