-
Bug
-
Resolution: Done
-
Major
-
Pipelines 1.15.0
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
- 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