odavid / my-bloody-jenkins

Self Configured Jenkins Docker image based on Jenkins-LTS
MIT License
251 stars 71 forks source link

Setting trigger githubPush() #232

Open gfnord opened 2 years ago

gfnord commented 2 years ago

Hi, There is a way to setup a trigger for a seed_jobs that triggers when GitHub send a push when the repository receives a merge (githubPush())?

On the documentation I see only pollSCM (cron based, but only runs when there is changes on repository) and period (simple cron based).

seed_jobs: SeedJob: triggers:

scm polling trigger

  pollScm: '* * * * *'
  # period trigger
  periodic: '* * * * *'

I want to setup a trigger like this example of declarative pipeline:

pipeline { ... triggers { githubPush() } ... }

Thanks,