jenkins-x / jx

Jenkins X provides automated CI+CD for Kubernetes with Preview Environments on Pull Requests using Cloud Native pipelines from Tekton
https://jenkins-x.io/
Apache License 2.0
4.57k stars 787 forks source link

Results passed between tasks disappear when using a "uses" step #8591

Open mmn0o7 opened 1 year ago

mmn0o7 commented 1 year ago

Expected Behavior When there is a "uses" step in a task the params that have task results in them disappear. uses task:

    - image: uses:jenkins-x/jx3-pipeline-catalog/tasks/git-clone/git-clone.yaml@versionStream
      name: ""
      resources: {}

Actual Behavior results passed should work regardless of uses task like previous versions.

Steps to Reproduce the Problem create a pipeline run with a task that returns a result create a second task with a param that receives the result create a step in the second task with a "uses" 4 create a second step in the second task that prints the result uses:

Output of kubectl version:

Minor:"26", GitVersion:"v1.26.5-gke.1200 Tekton Pipeline version:

Output of tkn version or kubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'

Client version: 0.31.1 Pipeline version: v0.42.0

apiVersion: tekton.dev/v1beta1 kind: PipelineRun metadata: creationTimestamp: null name: preview-env spec: workspaces: