Automated activation of custom pre-commit script for specific newly created repositories

Maik Ebert February 1, 2019

Hi,

I started creating custom ScriptRunner script for Bitbucket to block certain git-ref changes.

This is basically working fine.

 

Our users can create new BB repositories via a Jenkins job.

As input parameter he has to provide our custom repository type. Basically business or test repository.

I now need to install that custom ScriptRunner pre-commit script only for the new business repositories. Not for repositories of other types.

So I need a REST endpoint to activate that custom script.

Is such a configuration API available as for other hook plugins?

 

What alternative options do I have to automate the setup so it's not needed to manually configure something in BB GUI for each new created repository?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events