简体   繁体   中英

Add trigger to Jenkins pipeline

I want to add this trigger : "GitHub hook trigger for GITScm polling" to my pipeline. Do anybody know how can i do it ? I've tried to find in offical documentation but no success.

GitHub hook triggers are not yet supported by the Pipeline syntax.

The official documentation says:

For Pipelines which are integrated with a source such as GitHub or BitBucket, triggers may not be necessary as webhooks-based integration will likely already be present. The triggers currently available are cron , pollSCM and upstream .

So, enabling it through the job configuration page from the Jenkins UI is currently the way to go.

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