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

Reopened: Pipelines As Code is not working with on-path-change in Bitbucket Data Center

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Pipelines 1.21.0, Pipelines 1.19.4, Pipelines 1.20.1
    • Pipelines as Code
    • 5
    • False
    • Hide

      None

      Show
      None
    • False
    • Enhancement

      Description of problem:

      While doing Merge PullRequest, PAC not able to trigger PipelineRun for event push with `on-path-change` on Bitbucket-Server/DataCenter. In logs it does say Push event but cannot find matching PipelineRun.

      This issue was originally fixed by https://github.com/openshift-pipelines/pipelines-as-code/pull/2145 in SRVKP-7432, but the fix introduced a deeper semantic bug which required that fix be reverted.

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

      Steps to Reproduce

       - Setup Bitbucket Server/DataCenter with PAC

      • Configure two pipelineRun with on-path-change and with same directories
      • First PipelineRun will have target branch as xyz and Second have target branch as main/master
      • Make changes to xyz and create a pull request with main/master branch.
      • This will trigger first PipelineRun.
      • Merge Pull Request to Main/master branch.

       

      slack thread: https://redhat-internal.slack.com/archives/CSPS1077U/p1743998168167349

      Actual results: push event PipelineRun doesn't get trigger with logs 

      **

      "msg":"cannot match the event to any pipelineruns in the .tekton/ directory, payload target event is push with source branch refs/heads/master and target branch refs/heads/master. 

      Expected results: Trigger second PipelineRun

      Reproducibility (Always/Intermittent/Only Once): Always

      Acceptance criteria: 

       

      Definition of Done:

      Build Details:

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

      Please note this did work until adding the annotations for pipelinesascode.tekton.dev/on-path-change: 

       *

              rh-ee-zashaikh Zaki Shaikh
              rhn-support-sburhade Satyam Burhade
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: