Hi,

Is it possible to inspect the Gerrit changes by URLTrigger Plugin? 

URL like "http://gerrit.xxx.com/#/q/status:merged+branch:master";

I tried this plugin to Inspect URL content of Jenkins lastSuccessfulBuild 
which works fine, but it never work for Gerrit changes, did I miss 
something?

Step1:-------------------setup configuration: 
------------------------------------

[URLTrigger] - Poll with a URL
    URL: *http://gerrit.xxx.com/#/q/status:merged+branch:master*
    Basic Authentication
        User: <*my gerrit account, with admin access right*>
        Password: *<my http password*>
    URL Response Check
        Inspect URL content [*checked*]
            *Monitor a change of the content*

    Schedule:  ** * * * * *


Step2:-------------------waiting for first polling, log: 
-------------------------------

Inspecting TXT content for URL http://gerrit.xxx.com/#/q/status:merged
+branch:master
...

Using Basic Authentication with the user 'xxx'

Invoking the url: 

 http://gerrit.xxx.com/#/q/status:merge+branch:master 
<http://gerrit.xxx.com/#/q/status:merged+branch:master>

Inspecting the content

Capturing URL context. Waiting next schedule to check a change.

Capturing URL context. Waiting next schedule to check a change.

Polling complete. Took 58 ms.

No changes.


Step3:-------------------push a new changes to Gerrit master branch , and 
submit-------------------------------


Step4:-------------------waiting for next polling, log: 
-------------------------------

Inspecting TXT content for URL http://gerrit.xxx.com/#/q/status:merged
+branch:master
...

Using Basic Authentication with the user 'xxx'

Invoking the url: 

 http://gerrit.xxx.com/#/q/status:merge+branch:master 
<http://gerrit.xxx.com/#/q/status:merged+branch:master>

Inspecting the content


Polling complete. Took 58 ms.

No changes.


Thanks.

BR/Yinyin 

-- 
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/dc552e94-d948-439b-bbd9-f2cdb54ab034%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to