Reputation: 24717
I am trying to build a generic job that connects to a server and executes command.
I use the "Execute shell script on remote using ssh" job. The commands are taken from a "Text Parameter"
If i don't use the parameter but write the commands in the "Command" field, they are executed. However, when i use the parameter, ${SOME_COMMANDS}, the commands are not executed.
Should there be a way to use the text parameter in the command field?
Upvotes: 1
Views: 1544
Reputation: 21130
I don't think you can use a parameter directly in the command field, but you could get around it by calling a shell script with a fixed name in the command field and then having the script dereference the SOME_COMMANDS variable.
Upvotes: 1