Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STASH_PROJECT_NAME not available #95

Open
ddecul opened this issue Aug 12, 2019 · 2 comments
Open

STASH_PROJECT_NAME not available #95

ddecul opened this issue Aug 12, 2019 · 2 comments

Comments

@ddecul
Copy link

ddecul commented Aug 12, 2019

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
Copy link
Member

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
Copy link

bturner commented Nov 7, 2019

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants