atlassian-external-hooks icon indicating copy to clipboard operation
atlassian-external-hooks copied to clipboard

STASH_PROJECT_NAME not available

Open ddecul opened this issue 5 years ago • 2 comments

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?

ddecul avatar Aug 12 '19 15:08 ddecul

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

kovetskiy avatar Aug 12 '19 18:08 kovetskiy

@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

bturner avatar Nov 07 '19 21:11 bturner