Github webhooks - pre-push hooks

后端 未结 3 717
耶瑟儿~
耶瑟儿~ 2021-01-13 00:30

My requirement is that whenever developers are pushing to github, then before the push a CI build should trigger on Jenkins server. If that build fails, then push to github

3条回答
  •  臣服心动
    2021-01-13 01:16

    After some research, I've found that it is possible to trigger jenkins build using github's webhooks, but it's not possible to reject the github push request if the jenkins' build fails. So, basically, we cannot control the github's push, atleast not in free github account.

提交回复
热议问题