
[英]Trigger Jenkins build based on a new GitHub release or commit to the master branch
[英]Jenkinsfile trigger whenever there is a new commit in the branch
https://www.jenkins.io/doc/book/pipeline/syntax/#triggers
我有一個多分支作業,它掃描分支並從分支中的 Jenkinsfile 創建管道。 我希望分支中的構建在提交合並到該分支時自動觸發。
我查看了觸發器文檔。 它說“當前可用的觸發器是 cron、pollSCM 和上游。”
我認為即使沒有新的提交,cron 和 pollSCM 都會觸發,並且它們是基於時間的,因此在合並提交時不會觸發
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.