Closed ghost closed 9 years ago
Looks like code fails at getting e-mail address of user performing push.
It shouldn't fail anyway, but just now you can try to check in your profile that e-mail is set.
I am getting the same error. As you mentioned, I checked for the correct email but it does not help. I get this error every time i do a git push. Do you have another workaround?
@netzmensch: Hm, that's really strange. As far as I can see in backtrace, code failed at currentUser.getEmailAddress()
call.
Try to use following release: https://github.com/ngsru/atlassian-external-hooks/releases/download/v2.1/external-hooks-2.1-1.jar
I've added branch for email-value validation.
I'm also seeing this. In my case I'm using Jenkins to try and push a tag commit back to the Stash server. Using the 2.1-1 build resolves the issue.
@seletskiy yeah, it worked. thank you very much!
Released at marketplace as version 2.2-1.
thanks a lot. all is ok now.
I am using stash 3.6.1 and have a shell script to be triggered as a pre-receive hook via the external hook plugin. I am getting this message and the push is failing: Writing objects: 100% (8/8), 670 bytes | 0 bytes/s, done. Total 8 (delta 6), reused 0 (delta 0) remote: Hook com.ngs.stash.externalhooks.hook.ExternalPreReceiveHook failed. Error: remote: null To ssh://git@:7999/hpln/backend.git
! [remote rejected] BudIceEverGreen -> BudIceEverGreen (pre-receive hook declined)
error: failed to push some refs to 'ssh://git@
from the log we can see there is an exception being thrown: