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

target_branch == "[refs/heads/*]" with annotations on-cel-expression

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • Pipelines as Code
    • None
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • 3
    • Pipelines Sprint 257, Pipelines Sprint Pioneers 2

      Description of problem:

      pipelineRun does not get triggered on push events when I use

      annotations:
          pipelinesascode.tekton.dev/on-cel-expression: |
             event == "push" && target_branch == "[refs/heads/*]" &&
             (
               "**/staging/**".pathChanged()
             )

      However CI gets triggered when we specify the exact branch.

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

      •  Create a simple pipelineRun specifying the target branch with refs inside on-cel-expression.

      Actual results:

      Expected results:

      CI should get triggered with `ref/heads/*` 

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Acceptance criteria: 

       

      Definition of Done:

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

      Running on ocp 4.12

      Setup pac using latest openshift-pipelines operator

       *

              sashture Savita .
              pkumari Priti Kumari (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: