Openshift - trigger Jenkins build on git push

526 Views Asked by At

I work with Openshift now and I have a problem. I created an application server with Jenkins and when I push to the master branch of the git repository the Jenkins build is triggered automatically. The point is that the build isn't triggered when I push to another branch (not master).

I've read topics like this one (How to configure Git post commit hook) and I do realize what the ways to make Jenkins build on git push are.

Unfortunately I haven't found any information about how this is done in the Openshift Jenkins. This mechanism is already implemented there and I simply want to replace the trigger from the "master" branch to another one.

How can I do it?

1

There are 1 best solutions below

1
On BEST ANSWER

You can refer to the "Configuring Which Branch to Deploy" section from the following page:

https://developers.openshift.com/en/managing-deployments.html#configuring-which-branch-to-deploy