Does URLTrigger work with Gerrit URL changes(new patch submitted)?

17 views
Skip to first unread message

Yinyin Xiao

unread,
Jun 19, 2017, 12:03:42 AM6/19/17
to Jenkins Users
Hi,

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


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: 
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: 
Inspecting the content

Polling complete. Took 58 ms.
No changes.

Thanks.

BR/Yinyin 

Yinyin Xiao

unread,
Jun 19, 2017, 12:10:01 AM6/19/17
to Jenkins Users
add the versions info:
Jenkins:   2.46.3
URLTrigger Plug-in:  0.41

Yinyin Xiao

unread,
Jun 19, 2017, 11:46:59 PM6/19/17
to Jenkins Users
I resolved my issue by below 2 modifications:
1. Change to the Gerrit REST API URL: http://gerrit.xxx.com/a/changes/?q=status:merged+branch:master
2. auth.gitBasicAuth set to true
Reply all
Reply to author
Forward
0 new messages