Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Is it available to get gerrit data using gerrit change number? #58

Sangil_Park ·

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

  • replies 1
  • views 904
  • stars 0
robinshen ADMIN ·

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>