Tuleap Community Edition development and releases are no longer public. You have until September 30th to download packages and sources in Tuleap project. You can contact the team if you need further assistance.

    •  
      story #9083 trigger webhooks on git push
    Summary
    developer
    trigger webhooks on git push

    I can automate deployments after push

    In git config, hooks section I can:

    • Define, update and delete URL to be called after a git push
      • This URL will be called with POST method
      • There will be one call per reference (branch, tag) contained in push
      • Each call will have one arg 'ref' with the corresponding reference, www-urlencoded
    • I have a log of the last 30 push with:
      • The time, the status code returned by the target
    • I can define several webhook per repository

    Specific cases:

    • On forks, the configuration of webhooks is not inherited
    • On project creation, the configuration of webhooks is not inherited
    • After gerrit migration the webhooks are still active (ie triggered after replication)
    • There is no XML import/export

    Example:

    Given I configured http://myapp.io/one/target and http://anotherapp.bzh as 2 webhooks

    When I push 2 commits made in 2 branches (master and feature_1)

    Then Tuleap make 4 calls:

    • POST http://myapp.io/one/target (body: ref=refs/heads/master ...)
    • POST http://anotherapp.bzh (body: ref=refs/heads/master ...)
    • POST http://myapp.io/one/target (body: ref=refs/heads/feature_1 ...)
    • POST http://anotherapp.bzh (body: ref=refs/heads/feature_1 ...)

     

    Empty
    Status
    Empty
    Done
    Development
    • [ ] Does it involves User Interface? 
    • [ ] Are there any mockups?
    • [ ] Are permissions checked?
    • [ ] Does it need Javascript development?
    • [ ] Does it need a forge upgrade bucket?
    • [ ] Does it need to execute things in system events?
    • [ ] Does it impact project creation (templates)?
    • [ ] Is it exploratory?
    Empty
    Details
    #9083
    Manuel Vacelet (vaceletm)
    2016-06-01 10:23
    2016-04-19 11:25
    9386

    References

    Follow-ups

    User avatar
    User avatar
    • So that
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes
    • Acceptance criteria
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes