Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

Pass parameters to Linux shell script in Execute Shell Script action



  • How do you pass parameters to a Linux shell script in the Execute Shell Script action?
    How do I define the parameters?
    How does the Script Text reference the parameters?

    Product: BuildMaster
    Version: 4.6.4



  • Are you talking about a Script Library script or just executing an existing script on disk? If you're supplying the script text directly, then you can just use variable directly and don't really need to supply parameters.



  • I was referring to script text. Using the variable directly does work. Thank you!
    I just need to be careful of conflicts, for example $HOME is a variable for the Linux shell which I would not want to be replaced if I had a BuildMaster variable of the same name.



  • Glad that works. If you only have a few instances of variables like $HOME, you can always just escape the $ - use $$HOME instead and BuildMaster will treat it like the literal $HOME and not try to replace anything.



Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation