0

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?

Community
  • 1
  • 1
Green Fireman
  • 617
  • 1
  • 11
  • 27

1 Answers1

3

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

rshorey
  • 181
  • 4