Hello,
I hope to get patchset data(ref address, commit title, url address, ...) from gerrit server using gerrit change number.
Does it support in quickbuild v10.0.15?
Thanks
Hello,
I hope to get patchset data(ref address, commit title, url address, ...) from gerrit server using gerrit change number.
Does it support in quickbuild v10.0.15?
Thanks
You may parse out changeNo and patchNo from shortBranchName in QB, and then call Gerrit server RESTful api to get desired data. Short branch name can be retrieved this way:
groovy:
def shortBranchName = request.shortBranch.name;
// Short branch name is of format: refs/changes/<last two digits of changeNo>/<changeNo>/<patchNo>