I have a shell script that packages an application. This script, once executed, asks for SVN_USER & SVN_PASSWORD. Then exports them to the system, then runs packaging commands.
The thing is, i want to execute that script from Jenkins over ssh.
In other words, i need a way to inject my username & password in an inline command.
( i don't have the right to edit the script so i can not use $1 $2 and pass them as parameters, the script only accepts those two variables as a form input ).
i tried :
- export SVN_USER=foo
- export SVN_PASSWORD=bar
- ssh -o StrictHostKeyChecking=no email@example.com 'sh /base/myscript.sh appname'
--> The connectivity is fine, the script starts, asks for username and password, and fails execution since it didnt receive the information required.
Thanks for your help