简体   繁体   中英

Is it possible to trigger an webhook without updating a git repo?

我意识到您通常需要推送或合并分支来触发Webhook,但是我想知道是否可以使用Jenkins或本地生成git(例如,通过REST调用)来生成一个Webhook,而无需任何操作以任何方式更改回购协议?

but I was wondering if it is possible to generate one with Jenkins, or natively with git

If you mean that you wish to trigger Jenkins job without any git commit you can simply call it with a REST API.

Login to Jenkins - copy the build link and use it via curl or any other programming way of your choice.

Since GitHub webhooks invoke your given url you can test it yourself.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM