Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] Have a task supporting the bash commands #46

Closed
cmoulliard opened this issue Jun 14, 2019 · 3 comments
Closed

[Request] Have a task supporting the bash commands #46

cmoulliard opened this issue Jun 14, 2019 · 3 comments

Comments

@cmoulliard
Copy link

Feature request

The goal of this request is to have a task supporting the execution of multiple bash commands as we can by example do using CircleCI. See : https://github.com/snowdrop/component-operator-demo/blob/master/.circleci/config.yml#L26-L32

Tekton currently proposes this approach: https://github.com/tektoncd/pipeline/blob/master/examples/taskruns/task-env.yaml
but we can't group the commands to be executed by a container as currently it is restricted to what the k8s container spec allows

A workaround is perhaps to mount the bash script to be executed OR to have a parser converting a multiline bash commands into x args

@AdityaGupta1
Copy link
Contributor

A workaround that I use is:

command: ["bash", "-c", "command 1 ; command 2"]

But it would be nice to have a proper way to do multiple commands at once.

@vdemeester
Copy link
Member

@cmoulliard I think the related issue in pipeline is tektoncd/pipeline#1432, and thus I feel we can close this one 👼

@cmoulliard
Copy link
Author

Yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants