| I not sure but it seems that GERRIT_CHANGE_NUMBER is added by Gerrit Trigger Plugin. In our case we want to use Multibranch Pipeline and setup Gerrit Code Review plugin as a branch source. I don't know if Gerrit Trigger Plugin can be used in such setup. I'm aware that some information can be parsed from BRANCH_NAME but it would nice to be able to refer to it from pipeline as simple env.VARNAME. Also we need some information about Gerrit change before git checkout is done so we can't use git information - but it may be our specific requirement. |