I also tested with official containers with same rerun and signin buttons issues.
- gerrit:3.10.8
- gerrit:3.11.5
- gerrit:3.12.2
Instead of a signin button, this is shown in the UI, with a 403:
Error while fetching results for checks-jenkins:
Error message from plugin 'checks-jenkins': {}
During my initial tests with no nginx configured and using the CORS jenkins plugin, I was able to see the button if I had setup the checks-jenkins incorrectly but if I set it correctly, the same 403 error would be shown.
Since I setup nginx, I cant reproduce that behaviour but the 403 error is the same.
Regarding the rerun button, it shows(browser dev tools) this access returning a 404 using GET:
TIP: we are using a fork of Gerrit Trigger jenkins plugin based on 2.36.0 and curiously, the rerun button works.
My setup has been using Jenkins 2.528(+ gerrit-trigger Jenkins plugin 2.42.0 and gerrit-checks-api jenkins plugin 66.v3ef8b_f08f1f3), behind nginx, using self signed certificates.
I have these headers in nginx vhost, where cors_allowed_origin is a map that contains all the gerrit servers I want to allow access:
add_header 'Access-Control-Allow-Origin' $cors_allowed_origin always;
add_header 'Access-Control-Allow-Credentials' 'true' always;
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
add_header 'Access-Control-Allow-Headers' 'Authorization,Content-Type,X-Requested-With' always;
Setting the Jenkins instance to properly make checks-jenkins work took a bit of time so it is possible I'm missing something.
Tomorrow, I will try open issues for these.
If anyone has some tips to fix these issues or general feedback regarding the plugin usage, I would appreciate.
Thanks,
Nuno