Add option to pass custom variables to the cli
Closed this issue · 6 comments
Could you elaborate what kind of variables your are looking for?
hi @anbraten, I had the impression that woodpeckerci allows the passage of custom variables to the pipeline, as indicated by the web interface when manually running a pipeline. This issue was to suggest adding a feature to the CLI to allow the same.
Now, I am not sure my understanding is correct anymore as I can't find any reference of how and where to set and use those variables.
I guess --env
is what you are looking for: https://woodpecker-ci.org/docs/cli#exec
thanks @anbraten. A bit irrelevant to the original issue, but I'm wondering whether it's possible to define custom variables in the pipeline definition and interpolate them in the pipeline steps?