How to trigger Multibranch Pipeline build with github webhook

后端 未结 1 1796
无人及你
无人及你 2020-12-15 20:26

In freestyle job there is an option named \"GitHub hook trigger for GITScm polling\" on stage Build Trigger.

screen capture here:

相关标签:
1条回答
  • 2020-12-15 20:59

    This page described how to configure pipeline-as-code on multibranch workflow in jenkins.

    This is the quote from the description inside:

    The Workflow Multibranch feature (provided by the workflow plugin) provides the following key abilities:

    • Automatic Workflow (job) creation in Jenkins per new branch in the repo (assuming webhooks are registered from GH to Jenkins).
    • Build specific to that child-branch and its unique scm change and build history.
    • Automatic job pruning/deletion for branches deleted from the repository, according to the settings.
    • Flexibility to individually configure branch properties, by overriding the parent properties, if required.

    To configure the webhooks, refer to this page.

    To check if the events notify your jenkins you can use this feature below:

    PS: Watch the URL target that you configured, if you miss the "/" at the end of url it might not be able to reach the jenkins.

    I hope this helps!

    0 讨论(0)
提交回复
热议问题