Re: How to get Jenkins 2.0 multi branch pipeline and bitbucket 4.8.1 web hook working?

2016-08-19 Thread Jeroen Reijn
Hi Martin,

Yes that specific PR solves my problem. I hope it will me merged and
released soon, so we can start using that in our project. If not we will
probably cut our own internal release for now and wait for the release.

Jeroen

Op donderdag 18 augustus 2016 heeft Martin Dilger <martin.dil...@gmail.com>
het volgende geschreven:

> So I´m looking into this too.
>
> Did you mean "https://github.com/jenkinsci/bitbucket-branch-source-
> plugin/pull/5"?
>
> Martin
>
>
> Am Freitag, 22. Juli 2016 13:52:45 UTC+2 schrieb Jeroen Reijn:
>>
>> Hi all,
>>
>> I'm trying to get my multibranch workflow job to trigger based on a
>> change in bitbucket server (previously known as stash).
>>
>> I've read most of the docs on the several plugins, but I can't seem to
>> get the combination to work.
>>
>> What I've done now is configure my project with:
>>
>> Branch sources -> Bitbucket
>> Build Configuration -> Mode -> From Jenkinsfile
>> Bitbucket Server URL -> My custom URL
>> And I've setup the credentials.
>>
>> That part seems to work fine, so if I manually trigger the build it runs
>> fine and does the branch indexing.
>>
>> On the bitbucket side, I've tried to use the following plugins:
>>
>> 1. Bitbucket Server Webhook to Jenkins
>> I tried this with specificing the jenkins url, but it reports back with:
>>
>> Error: Jenkins response: No git jobs using repository:
>> http://host:7990/scm/hv/project.git and branches: master No Git
>> consumers using SCM API plugin for: http://host:7990/scm/hv/project.git
>>
>> I guess this comes from the fact it's a pipeline job that uses a branches
>> sources instead of git in a 'normal' maven base project with git as source.
>>
>>
>> 2. Post-Receive WebHooks
>>
>> If I use this plugin with the URL http://jenkinshost:8080/bitbucket-hook/
>> it complaints with:
>> WARNING: Error while serving http://jenkinshost:8080/bitbucket-hook/
>>
>> net.sf.json.JSONException: JSONObject["user"] not found.
>>
>> So it seems the request body to the bitbucket hook is not what the server
>> expects. I've found some github issues, but I can't seem to figure out how
>> I can make this work.
>>
>> I assume I'm not the only one trying this?
>>
>> Any ideas?
>>
>> Regards,
>>
>> Jeroen
>>
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/jenkinsci-users/GjvZ6Dj8pRc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com
> <javascript:_e(%7B%7D,'cvml','jenkinsci-users%2bunsubscr...@googlegroups.com');>
> .
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/2ff63def-d518-4e40-b1ce-62bf2c8ca566%40googlegroups.
> com
> <https://groups.google.com/d/msgid/jenkinsci-users/2ff63def-d518-4e40-b1ce-62bf2c8ca566%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Verzonden via Gmail Mobile

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAHiEoLG4aROzLm6kC2ONbRVxJYcUUbHjNA6DA7WXSjWxvU0VBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get Jenkins 2.0 multi branch pipeline and bitbucket 4.8.1 web hook working?

2016-07-29 Thread Jeroen Reijn
Hi Otavio,

Yes it tried that, but it did not seem to work or i misconfured something.
I think I found a solution with pending PR in the bitbucket source plugin.

Jeroen

Op do 28 jul. 2016 om 23:32 schreef Otávio Augusto Soares <
otavi...@gmail.com>

> Have you tried using the "Trigger builds remotely (e.g., from scripts)",
> setting a token and then add a webhooh to
> http://JENKINS_URL/job/JOB_NAME/build?token=TOKEN
>
> Unfortunately it's not working for me because I've secured my jenkins and
> get 403. But you can try.
>
>
> Em sexta-feira, 22 de julho de 2016 08:52:45 UTC-3, Jeroen Reijn escreveu:
>>
>> Hi all,
>>
>> I'm trying to get my multibranch workflow job to trigger based on a
>> change in bitbucket server (previously known as stash).
>>
>> I've read most of the docs on the several plugins, but I can't seem to
>> get the combination to work.
>>
>> What I've done now is configure my project with:
>>
>> Branch sources -> Bitbucket
>> Build Configuration -> Mode -> From Jenkinsfile
>> Bitbucket Server URL -> My custom URL
>> And I've setup the credentials.
>>
>> That part seems to work fine, so if I manually trigger the build it runs
>> fine and does the branch indexing.
>>
>> On the bitbucket side, I've tried to use the following plugins:
>>
>> 1. Bitbucket Server Webhook to Jenkins
>> I tried this with specificing the jenkins url, but it reports back with:
>>
>> Error: Jenkins response: No git jobs using repository:
>> http://host:7990/scm/hv/project.git and branches: master No Git
>> consumers using SCM API plugin for: http://host:7990/scm/hv/project.git
>>
>> I guess this comes from the fact it's a pipeline job that uses a branches
>> sources instead of git in a 'normal' maven base project with git as source.
>>
>>
>> 2. Post-Receive WebHooks
>>
>> If I use this plugin with the URL http://jenkinshost:8080/bitbucket-hook/
>> it complaints with:
>> WARNING: Error while serving http://jenkinshost:8080/bitbucket-hook/
>>
>> net.sf.json.JSONException: JSONObject["user"] not found.
>>
>> So it seems the request body to the bitbucket hook is not what the server
>> expects. I've found some github issues, but I can't seem to figure out how
>> I can make this work.
>>
>> I assume I'm not the only one trying this?
>>
>> Any ideas?
>>
>> Regards,
>>
>> Jeroen
>>
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/GjvZ6Dj8pRc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/94550ff0-a8fe-493e-b442-4fd91213dfa9%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/94550ff0-a8fe-493e-b442-4fd91213dfa9%40googlegroups.com?utm_medium=email_source=footer>
> .
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAHiEoLH6B%3DSGjWYke3gRioukLBiOgge2WUieYFRAT8mA9%3DN9pA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How to get Jenkins 2.0 multi branch pipeline and bitbucket 4.8.1 web hook working?

2016-07-22 Thread Jeroen Reijn
Hi all,

I'm trying to get my multibranch workflow job to trigger based on a change 
in bitbucket server (previously known as stash).

I've read most of the docs on the several plugins, but I can't seem to get 
the combination to work. 

What I've done now is configure my project with:

Branch sources -> Bitbucket
Build Configuration -> Mode -> From Jenkinsfile
Bitbucket Server URL -> My custom URL
And I've setup the credentials.

That part seems to work fine, so if I manually trigger the build it runs 
fine and does the branch indexing.

On the bitbucket side, I've tried to use the following plugins:

1. Bitbucket Server Webhook to Jenkins
I tried this with specificing the jenkins url, but it reports back with:

Error: Jenkins response: No git jobs using repository: 
http://host:7990/scm/hv/project.git and branches: master No Git consumers 
using SCM API plugin for: http://host:7990/scm/hv/project.git

I guess this comes from the fact it's a pipeline job that uses a branches 
sources instead of git in a 'normal' maven base project with git as source.


2. Post-Receive WebHooks

If I use this plugin with the URL http://jenkinshost:8080/bitbucket-hook/ 
it complaints with:
WARNING: Error while serving http://jenkinshost:8080/bitbucket-hook/ 

net.sf.json.JSONException: JSONObject["user"] not found.

So it seems the request body to the bitbucket hook is not what the server 
expects. I've found some github issues, but I can't seem to figure out how 
I can make this work.

I assume I'm not the only one trying this?

Any ideas?

Regards,

Jeroen


-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/8f1eda34-d6a7-419a-b487-2bad3c584f91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Report plugin for custom test framework?

2016-07-04 Thread Jeroen Reijn
Hi all,

at my current client they've developed a custom test tool that, which 
leverages Selenium amongst others, which I would like to integrate with 
Jenkins. Being able to execute the tool is easy. It's a java executable, 
which I just execute from a shell script. So far so good.
I've made some small alterations to the framework to output JUnit style 
test results and I'm now looking at ways to integrate the test results and 
make them visually available in Jenkins.

What I've tried so far is just using a JUnitResultArchiver in my pipeline 
definition, but this adds the results to the default 'Test Results' view 
for my job, which also shows the Junit test results. Because both sets or 
tests are not in a separate suite it's pretty hard to differentiate between 
the two type of tests. This might actually be a solution (not sure) to my 
problem, but I would ideally like a separate view for the custom reports. 
Now what I've noticed is that for most other tools a dedicated plugin 
exists (Gatling, JMeter, Fitness, Selenium, etc).
I was thinking that I might have to go the same route, but before I invest 
time and money into creating a custom plugin I was hoping some of you would 
be able to either point me in the right direction or just tell me that I 
indeed need to create a custom plugin.

Any thoughts?

Cheers,

Jeroen

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a6e69649-343a-451c-8687-e35cc53f4fb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.