I have a shell script at Unix Server which contain sqlplus commands to do some validation.and I can run script using putty and see required result.In Unix server I have set up Oracle path and Library path in .bash_profile file. So when I start putty , it get loaded and can understand sqlplus command.
Now Challenge is
when I call that shell script from Jenkins(Windows node) then I get error "sqlplus command not found". Here I call .bash_profile file first then my shell script which have sqlplus commands.
Please help.
cygwinon windows? If not you can call yourbash_profilewhatever you want, but it is not going to source your commands. Add the location of the binaries to your windowsPathas wellC:\path\to\sqlplus\on\windows\node, or if you use powershell to run the commands, see this post or from bat, see this post. If it is a freestyle job, you can put it in the code area as well. Start withSET PATH=%PATH%;c:\path\to\sqlplus\on\windows\node