After searching found that to run the selenium test from Jenkins we have to run the jenkins by command Java -jar jenkins.war
instead of as a Service
Problem is that when running the Jenkins as a service it works fine but when running it with the command job is giving error:
FATAL: Base ClearCase failed. exit code=1
FATAL: java.io.IOException: cleartool did not return the expected exit code.
Command line="endview -server sprint8_view_DCLLegacy", actual exit code=1
[workspace] $ "C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleartool" endview -server sprint8_view_DCLLegacy
cleartool: Error: Cannot stop view server for view "sprint8_view_DCLLegacy": Permission denied.
FATAL: Base ClearCase failed. exit code=1
java.io.IOException: cleartool did not return the expected exit code.
Command line="endview -server sprint8_view_DCLLegacy", actual exit code=1