Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

WebHook with Openshift Pipeline 3.11

Martin T'Espinoza
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 17, 2020

Hello,

I have created a webhook to launch a build event with Openshift Pipeline, using the following enpoint: https: //<openshift_api_host:port>/apis/build.openshift.io/v1/namespaces/<namespace>/ buildconfigs/<name>/webhooks/<secret>/bitbucket

Everything seems to work when I only have one branch (master), however I need to create another branch (developer) to separate my deliveries. The problem is when I push to the development branch I see that the WebHook is activated but my OpenShift Pipeline build is not activated. When I enter the WebHook to see the detail of my request, only a "No content" message is displayed.

I want to know if there is a solution for this problem? Why does this happen?

Is it possible that the webhook only works correctly when it receives a push on the master branch?

Is it possible to read the body / payload that the webhook sends to my endpoint? Maybe via groovy or pipeline syntax, or some other suggestion?

Sorry if I said something wrong, I am totally new to this matter.

Screenshot_4.png

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events