bitbucket-branch-source-plugin icon indicating copy to clipboard operation
bitbucket-branch-source-plugin copied to clipboard

Access to Bitbucket Endpoint base path from Pipeline script

Open robross0606 opened this issue 4 years ago • 3 comments

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.

robross0606 avatar May 05 '21 16:05 robross0606

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.

robross0606 avatar May 05 '21 19:05 robross0606

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.

stale[bot] avatar Apr 30 '22 22:04 stale[bot]

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.

KalleOlaviNiemitalo avatar May 02 '22 11:05 KalleOlaviNiemitalo