In my pipeline script, I am running another script that compiles and runs tests.
The script runs some jobs on sungrid. When the build is run, I see that qrsh (which is the command to launch job on sungrid) was not found.
I went back and executed env to check the path and as expected the path to sungrid was not set.
The first thing I did was to go back and add proper path to sungrid in .bashrc file of Jenkins user.
That did not solve the issue as expected, as Jenkins will not run under bash.
Then I created a new file to set proper path and then gave the path in Jenkins build (using prepare environment I guess ... I don't remember as I don't have access to Jenkins currently). But this did not help either.
I need some help ...