Why Jenkins isn't able to start the service, but it is starting fine when I start it manually?

443 views Asked by At

I am trying to start HYBRIS server from Jenkins.

When I run the sh hybrisserver.sh start command manually in the server it starts correctly.

But, when I try to run the same command through Jenkins it is not able to start the service.

The Hybris server and Jenkins master are connected through a slave (node).

What could be the issue?

2

There are 2 answers

0
Madhusudan Sahu On BEST ANSWER

You can include following line of entry on jenkins job and it will start nicely.

export CATALINA_BASE="<Your Hybris DIR>/hybris/bin/platform/tomcat"
export WRAPPER_CONF="$CATALINA_BASE/conf/wrapper.conf"
sudo sh <Your Hybris DIR>/hybris/bin/platform/tomcat/bin/wrapper.sh start

0
Ankit Gupta On

try setting up tools environment using https://wiki.jenkins-ci.org/display/JENKINS/Tool+Environment+Plugin then set up required env variable and run slave as cmd through admin rights