Run script to update file on buddy's fs


I want to insert an action which will run a script which writes the pipeline’s vars into a file (on buddy’s fs).

Which is the appropriate way to do this?


Try running printenv > my-file.txt command in the ‘Local Shell’ action.


Thanks for the response!

Great to know that I can update the file system programmatically! However, I forgot to include a part of the spec I’m working from. In addition I would like to insert the pipeline vars into a json file at a specific field.

So if the env vars are [“test1” “val1”]

the resulting file would be something like

“environment” : {“test1” “va1”}