Skip to content

Setting trigger githubPush() #232

@gfnord

Description

@gfnord

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions