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

ecosystem: cannot use result of resolver tasks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Blocker Blocker
    • Pipelines 1.15.0
    • Pipelines 1.15.0
    • Tekton Ecosystem
    • None
    • False
    • None
    • False

      Description of problem:

      Pipeline run fails immediately when a pipeline tries to export result of a resolver task. When I remove "results" section of pipeline, git repository is cloned successfully.

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

      Pipelines 1.15.0

      Steps to Reproduce

       # run the following pipeline

      apiVersion: tekton.dev/v1
      kind: Pipeline
      metadata:
        name: git-clone-result
      spec:
        workspaces:
          - name: shared-workspace
        tasks:
          - name: clone-git-repo
            taskRef:
              resolver: cluster
              params:
              - name: kind
                value: task
              - name: name
                value: git-clone
              - name: namespace
                value: openshift-pipelines
            workspaces:
              - name: output
                workspace: shared-workspace
            params:
              - name: URL
                value: https://github.com/ppitonak/nocode
              - name: SUBDIRECTORY
                value: "git-clone"
              - name: DELETE_EXISTING
                value: "true"
              - name: REVISION
                value: master
        results:
          - name: commit
            value: $(tasks.clone-git-repo.results.commit)
      

       

      Actual results:

      Failed to resolve pipeline result reference for "git-clone-result-b44567" with error %!w(*fmt.wrapError=&{invalid pipeline result "commit": "commit" is not a named result returned by pipeline task "clone-git-repo" 0xc0034c7ec0})
      

      Expected results:

      git repository is cloned successfully

      Reproducibility (Always/Intermittent/Only Once):

      Always

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

              vdemeest Vincent Demeester
              ppitonak Pavol Pitoňák
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: