I got scheduled Jenkins job with numerous stages integrated with gerrit. I want to check on the first phase if any changes was made on repository (new code, auto-bumps,etc...) On scheduled jobs I have no GERRIT_OLDREV and GERRIT_NEWREV variables.
How can I do that?
Thanks