简体   繁体   中英

Jenkins' Generic Webhook Trigger Plugin: Trigger on all branches except master

I'd like to have the Generic Webhook Trigger Plugin to trigger on all branches but master. Is this possible? Using the "Optional filter" I can create a regular expression that says basically to trigger on all branches that matches a given name, but I haven't found a way to trigger on all matches but "master".

Why don't you mark all your branches except the master branches with a particular regex? And then you call that particular tag. I assume you already looked on here: https://wiki.jenkins.io/display/JENKINS/Generic+Webhook+Trigger+Plugin

I ended up doing something slightly different. I made my the Generic Webhook Plugin in my current job trigger only on push'es to master. I then created another job that uses Git Parameter plugin to list all available branches, so that I manually can run a build on a non-master branch.

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