atlassian-external-hooks
atlassian-external-hooks copied to clipboard
STASH_PROJECT_NAME not available
I am using a pre-receive hook and the hook is using the following variable. STASH_PROJECT_NAME = Project_Name
I am getting an error stating that old variable is no longer defined STASH_PROJECT_NAME . I just upgraded Bitbucket Data Center to version 6.4. Is this an issue with version 6.4? If so, is there a work around that can be used to reference the Project Name?
Hi!
Unfortunately, Atlassian have removed this and few other environment variables starting from 6.2.0, here is the list of changes:
https://github.com/reconquest/atlassian-external-hooks/blob/master/CHANGELOG.md#620
@ddecul,
I'm one of the Bitbucket Server developers. I'm curious what your use case is for using the project name. The project's key is available, and is generally the more useful piece of information (since it's what appears in URLs, not the name).
Best regards, Bryan Turner Atlassian Bitbucket