Search code examples
shelltomcatjenkinssap-commerce-cloud

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


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?


Solution

  • 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