Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-1746

Pipelines as Code: Allow matching event to a pipeline by modified files

XMLWordPrintable

    • 3
    • False
    • False
    • Hide
      We have added support for advanced event matching on filepath for push and pull request to Github and Gitlab.
      It will allow you to express using CEL expression something like
      ex: I want to run this pipeline on docs/ and not the others.
          pipelinesascode.tekton.dev/on-cel-expression: |
                  event == "pull_request" && "docs/*.md".pathChanged()
      Show
      We have added support for advanced event matching on filepath for push and pull request to Github and Gitlab. It will allow you to express using CEL expression something like ex: I want to run this pipeline on docs/ and not the others.     pipelinesascode.tekton.dev/on-cel-expression: |             event == "pull_request" && "docs/*.md".pathChanged()
    • Pipelines Sprint 227, Pipelines Sprint 228, Pipelines Sprint 229, Pipelines Sprint 230

      As a web developer I have my frontend application which I develop along with my colleagues on the same repository with my backend friends.

      I would like to be able to add a Pipeline that only get triggered when I modify my backend files.

       

      Notes:

      • We currently matching a pipeline (from .tekton) to an event (pull/push) and tags
      • We should be able to match a files via regexp on pull or push events.
      • ie this annotation pipelinesascode.tekton.dev/on-target-branch: "frontend/*"
      • This should be just one paginated API call for listing PR files.
      • This should be possible to do across all webVCS

              sashture Savita .
              cboudjna@redhat.com Chmouel Boudjnah
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: