reconquest / atlassian-external-hooks

External Hooks plugin for Atlassian Bitbucket
https://external-hooks.reconquest.io
Other
44 stars 37 forks source link

STASH_PROJECT_NAME not available #95

Open ddecul opened 5 years ago

ddecul commented 5 years ago

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?

kovetskiy commented 5 years ago

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

bturner commented 4 years ago

@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