Check the release notes. See "Removal of setenv.sh & setenv.bat".
There is a table with the new locations of the environment variables.
https://confluence.atlassian.com/bitbucketserver/bitbucket-server-5-0-release-notes-889528342.html
Maybe it helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.