Awx: Add webhooks for integration with SCM

Created on 3 Dec 2018  路  5Comments  路  Source: ansible/awx

ISSUE TYPE
  • Feature Request
COMPONENT NAME
  • API
  • UI (?)
SUMMARY

AWX should support webhooks such that events in a webhookable SCM system such as Github can:

  • force a project update
  • launch a job template/workflow

This should, at a minimum, support:

  • GitHub
  • Gitlab
  • Bitbucket
    with pluggability to support other SCM platforms.

This should track items such as:

  • repository
  • user who made the change
  • PR/change request/etc
  • whether it's a PR, update to a PR, or a merge
  • probably some other things
ENVIRONMENT
  • AWX version: whatever
ADDITIONAL INFORMATION

Probably will require some crossover with #282

api ui medium enhancement

Most helpful comment

I have a mixed need, where in some projects I need to directly integrate with github and in some others where I need to integrate with codeship (not an scm, obviously).
What I have in mind for this is a new item in the sidebar named "webhook", with a type, and several options depending on the selection. For github, for example, a push is sent for every change the repository registers, but with the configurations we could filter out only certain events as triggers for the target job we decide to use.
Does that make sense? What do you have in mind with this @wenottingham ?
I have some availability to work on a proof of concept for this, but I would like to have the requirement more functionally defined and aligned with the project's expectation before proceeding.

All 5 comments

Would love to see a webhook integration.

I have a mixed need, where in some projects I need to directly integrate with github and in some others where I need to integrate with codeship (not an scm, obviously).
What I have in mind for this is a new item in the sidebar named "webhook", with a type, and several options depending on the selection. For github, for example, a push is sent for every change the repository registers, but with the configurations we could filter out only certain events as triggers for the target job we decide to use.
Does that make sense? What do you have in mind with this @wenottingham ?
I have some availability to work on a proof of concept for this, but I would like to have the requirement more functionally defined and aligned with the project's expectation before proceeding.

Hi @cdvv7788. I'd like to see a webhook function. As a user, I'd like to integrate and run the awx webhook from multiple kind of applications, particularly (but not limited to) version control (e.g. GitHub) and especially above all also from build engines (e.g. Jenkins). Thank you.

Is it possible to do project updates using webhooks. I simply cannot find how to do it. Job executions work fine but how can I trigger awx project updates?

Was this page helpful?
0 / 5 - 0 ratings