bitbucket-branch-source-plugin
bitbucket-branch-source-plugin copied to clipboard
Access to Bitbucket Endpoint base path from Pipeline script
Feature Request
As far as I can tell, the configured Bitbucket Endpoint Server URL used for a multibranch pipeline build is not exposed via environment (or scm object?) for use from the pipeline DSL. This would be quite useful because, if your Bitbucket server has a context path, determining the root path to the server from a full git repository URL seems nigh impossible. This would be very useful for things like hook calls in a pipeline script. If there is some way to already do this, please let me know.
Does this plugin expose the payload data from the webhook trigger on the DSL? There are all sorts of useful pieces of information in there, but I cannot figure out how to access it from a Pipeline script.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Preferably, both this Bitbucket Branch Source plugin and the alternative Bitbucket Server Integration plugin would provide the endpoint info in the same way, and this info would be available to both pipeline scripts and other plugins. JENKINS-64691 in Bitbucket Server Integration is related.