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

ecosystem: result COMMIT not set in git-clone

XMLWordPrintable

      Description of problem:

      Result COMMIT is not set in git-clone task

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

      Pipelines 1.15.0

      Steps to Reproduce

       # run the following pipeline

      1. take a look on results
      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:

      Result COMMIT is missing although the task specifies it

      $ oc get task -n openshift-pipelines git-clone -o jsonpath={.spec.results} | jq
      [
        {
          "description": "The precise commit SHA digest cloned.\n",
          "name": "COMMIT",
          "type": "string"
        },
        {
          "description": "The precise repository URL.\n",
          "name": "URL",
          "type": "string"
        },
        {
          "description": "The epoch timestamp of the commit cloned.\n",
          "name": "COMMITTER_DATE",
          "type": "string"
        }
      ]
      
      status:
          results:
          - name: COMMITTER_DATE
            type: string
            value: '1579634710'
          - name: URL
            type: string
            value: 'https://github.com/ppitonak/nocode'
      
      

      Expected results:

      Result named COMMIT is set

      Reproducibility (Always/Intermittent/Only Once):

      always

              sashture Savita .
              ppitonak Pavol Pitoňák
              Aneesh Bhat Aneesh Bhat
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: