Use email in tryjob ref name instead of username.

GoB doesn't have a concept of username so it can't restrict access only
to 'refs/tryjobs/${username}/*' like old Gerrit did.

GoB knows about user email though and at some point it will restrict
access to 'refs/tryjobs/${useremail}/*'.

TEST=ran 'cbuildbot --remote -p chromiumos/chromite --buildbot --debug amd64-generic-paladin' and verified try bot picked up my CL. 

Change-Id: I81588ef99cbb364a8a017bd5a38f658067e83fd1
Reviewed-on: https://chromium-review.googlesource.com/167480
Tested-by: Vadim Shtayura <vadimsh@chromium.org>
Reviewed-by: Chase Phillips <cmp@chromium.org>
Commit-Queue: Vadim Shtayura <vadimsh@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
1 file changed