Search code examples
javalinuxjenkinsjenkins-pluginsjboss-eap-6

Restarting Jboss eap using jenkins without root permission on remote host


I have configured jenkins to copy the jar file generated from the job to target folder on remote host(GNU LINUX) where jboss is running. Presently I have to manually restart the jboss every time for the changes to reflect. I am using scp only account and jenkins scp plugin for jar movement.

Is there a way we can restart the jboss from jenkins without root access on the remote host where jboss is running so that this completely automates the process. The scp account I have on the remote only has copy persmissions. I cannot execute a shell.

Thanks for the help.


Solution

  • You may be able to use wildfly:shutdown (with the reload option) to achieve the effect of a restart in JBoss EAP 6.x.

    The success of this may depend on the accessibility of the control port, so an SSH tunnel may be needed. I'm not sure if you can achieve this in your environment though.

    Try to get it working on a JBoss EAP instance running on an accessible LAN first.