events-log plugin not triggering Jenkins Gerrit parameters

421 views
Skip to first unread message

Ashwini T R

unread,
Mar 20, 2017, 7:02:12 AM3/20/17
to Repo and Gerrit Discussion
Hi,

we have events-plugin installed in our gerrit instance with below configurations :

[events-log]
        maxAge = 30
        returnLimit = 7000
        storeDriver = com.mysql.jdbc.Driver
        storeUrl = jdbc:mysql://localhost/eventsdb
        localStorePath = /opt/events_backup
        urlOptions = DB_CLOSE_DELAY=1
        copyLocal = true

when it is configured with Jenkins to trigger the build. Gerrit parameters are missing from the Jenkins build parameters. PFA.

Scenarios: 

 1. Jenkins will trigger the parameters "GERRIT_HOST" , "GERRIT_PORT", "GERRIT_PORT" , "GERRIT_SCHEME" , " GERRIT_VERSION" when the Jenkins is online  using events-log plugin.

 2. Jenkins fail to trigger the above parameters when Jenkins is OFFLINE using events-log plugin.


The goal of the plugin is to allow trigger changes which occurred when Jenkins was offline, Which failed in the above scenario, Could you please let us know if it is expected behavior or a bug.

Regards
Ashwini

Jenkins_parameters.PNG

Bassem Rabil

unread,
Mar 20, 2017, 8:10:59 AM3/20/17
to Repo and Gerrit Discussion
You can troubleshoot this by trying to query the DB you specified in the configurations and make sure the events are added properly in the DB. If this works, you can then try the REST-APIs from plugin documentation provided by the plugin /plugins/events-log/events/ e.g. "curl –user joe:secret http://host:port/plugins/events-log/events/?t1=2017-03-01;t2=2017-03-02". Jenkins Gerrit trigger is using this REST-APIs to re-trigger older events.

Regards
Bassem
Reply all
Reply to author
Forward
0 new messages