You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
- image: uses:jenkins-x/jx3-pipeline-catalog/tasks/git-clone/git-clone.yaml@versionStream
name: ""
resources: {}
Additional Info
Kubernetes version:
image: bash:latest
name: test
resources: {}
script: |
echo "the version is $VERSION"
echo "the params version is $(params.version)"
echo "the testparam is $(params.testparam)"
Expected Behavior
When there is a "uses" step in a task the params that have task results in them disappear.
uses task:
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:
- image: uses:jenkins-x/jx3-pipeline-catalog/tasks/git-clone/git-clone.yaml@versionStream
name: ""
resources: {}
Additional Info
Kubernetes version:
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:
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 4Gi
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 4Gi
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
pipelineSpec:
workspaces:
name: frontend
name: git-clone
name: wrangler
results:
name: version
description: version
value: $(tasks.version.results.version)
tasks:
name: version
params:
value: $(workspaces.git-clone.path)
workspaces:
workspace: git-clone
retries: 1
resources: {}
taskSpec:
params:
type: string
workspaces:
results:
description: result to store the version
description: commit hash
description: author of the pr
description: donotrun
description: pr-number
description: skipbuilds
metadata: {}
stepTemplate:
image: uses:jenkins-x/jx3-pipeline-catalog/tasks/javascript/pullrequest.yaml@versionStream
name: ""
resources:
override limits for all containers here
requests:cpu: 100m
memory: 256Mi
workingDir: $(params.workdir)/source
steps:
name: build-docker-sse
resources: {}
script: |
echo crazy | tee $(results.version.path)
name: build-frontend
workspaces:
workspace: frontend
retries: 1
params:
value: $(tasks.version.results.version)
value: $(workspaces.frontend.path)
value: testvalue
runAfter:
resources: {}
taskSpec:
workspaces:
params:
type: string
description: docker registry to push docker to
default: eu.gcr.io/filedriver-291811
type: string
metadata: {}
stepTemplate:
env:
value: "$(tasks.version.results.version)"
name: ""
resources:
override limits for all containers here
requests:cpu: 200m
memory: 256Mi
workingDir: $(params.workdir)/source
steps:
name: ""
resources: {}
name: test
resources: {}
script: |
echo "the version is $VERSION"
echo "the params version is $(params.version)"
echo "the testparam is $(params.testparam)"
podTemplate:
nodeSelector:
node: pipeline
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node
operator: In
values:
- pipeline
tolerations:
- key: "node"
operator: "Equal"
value: "pipeline"
effect: "NoSchedule"
serviceAccountName: tekton-bot
timeout: 30m
status: {}
The text was updated successfully, but these errors were encountered: