The hook I’m developing needs to enable and to configure “Bitbucket Server Webhook to Jenkins” hook according to detected changes in pom.xml
file in the repository.
Seems RepositoryHookService
can be used to retrieve existing Settings
of “Bitbucket Server Webhook to Jenkins”. However the Settings
contains getters only and for new repositories there will be no configuration yet. There is SettingsBuilder
interface, which can be used to re-construct the Settings
, but I’m failing to find any implementations of it.
Is there a way to create new and to update existing Settings
without involving UI?
Thank you,
Viktor