Uploaded image for project: 'Ansible Automation Platform RFEs'
  1. Ansible Automation Platform RFEs
  2. AAPRFE-631

Trigger an AAP workflow/Job when a specific File(s) changes in a Git repository

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Won't Do
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      Feature Overview

      Trigger a workflow or job where a webhook is watching for a specific file or set of files to change within a Git repository. 

      Background, and strategic fit

      AAP allows the ability to set webhooks on your repo to trigger a workflow or job when a Git Push event occurs in a repository. However, a more likely scenario is you wish that the workflow or job template would trigger when a specific file or set of files within your Git repository changed, not necessarily that a Git push event occurred somewhere in your repository. 

      (Optional) Use Cases

      < How will the user interact with this feature? >
      An AAP admin would create a workflow/job template enable webhooks and have an option to set an action. This action would allow the admin to set which files to watch for changes prior to triggering the workflow/job template to run.

      < Which users will use this and when will they use it? >
      Any users wanting to implement GitOps with Ansible, or users wanting to do event driven automation with Ansible

      < Is this feature used as part of current user interface? >
      We currently have the feature of enabling webhooks and them running a workflow/job template when a Git push event occurs anywhere within the repo. No way to cater it specifically to a file or set of files. 

      Assumptions

      < Are there assumptions being made regarding prerequisites and dependencies>

      No. The steps to use the webhook should be the same. We just need the additional ability for AAP to watch specific files instead of triggering if any part of the repo had a Git push event.

       

       

              rhn-sa-pgriffiths Phil Griffiths
              rlopez@redhat.com Roger Lopez
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: