I have installed a binary in our Bitbucket admin instance. I am also developing a custom plugin in which I will shell out and call this binary. When I am shelling out I want the path where this binary is being called from to be within the repo. What is the path for the plugin environment? Do I need to cd into my repo?
Starting from Bitbucket 8.0 you can’t access the repository directly anymore. However, we have support for Hook Scripts, which might be what you’re looking for? It allows you to hook into the pre-receive
and post-update
hooks of Git and execute commands on the repository.