You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are currently able to programatically add a jenkins webhook to our bitbucket repos. However, we need to add a second jenkins instance to it. Long story short, the api endpoint we are hitting is like this:
We are currently able to programatically add a jenkins webhook to our bitbucket repos. However, we need to add a second jenkins instance to it. Long story short, the api endpoint we are hitting is like this:
https://my.bitbucket.server/rest/api/1.0/projects/someproject/repos/fake-project/settings/hooks/com.nerdwin15.stash-stash-webhook-jenkins:jenkinsPostReceiveHook/enabled
We're using the PUT method.
The data we're passing is like the following:
'{"jenkinsBase":"https://dans.com/","cloneType":"ssh","ignoreCerts":false}
If I add a second jenkinsBase to the data structure above like the following, it only accepts the second value:
'{"jenkinsBase":"https://dans.com/","cloneType":"ssh","ignoreCerts":false,"jenkinsBase":"https://dans1.com","cloneType":"ssh","ignoreCerts":false}'
What method and data structure should I use to add a second jenkinsBase to our webhook for a repo?
The text was updated successfully, but these errors were encountered: