Gl_repository environment variable

Hi. I need to identify a repository by gl_repository variable.
I installed gitlab 9.5 and try get the variable gl_repository value on a custom_hook script.
But when the hook is running, the command “echo $gl_repository” returns empty. How can i get this value?

Thanks