<p>Easiest way to do that would be to ssh from Jenkins to your application server and then run the command to restart your Jenkins. You can either just write down the command inside an "Execute Shell" step, or use a plugin, like this one: 
<a href="https://wiki.jenkins.io/display/JENKINS/SSH+plugin" rel="nofollow noreferrer">https://wiki.jenkins.io/display/JENKINS/SSH+plugin</a></p>

CC BY-SA 4.0
2019-02-07T17:05:28.303Z
2019-02-07T17:05:28.303Z
Ilya Chernomorin
<p>It’s possible to use <strong>Publish Over SSH Plugin</strong>. Lets set up ssh connection details in the settings interface of Jenkins. We assign server a name, an address, user’s name and authorization way — by password, passphrase orindicatedcate key. These adjustments are simple and easy. You may found more details the on plugin’s page.</p>

<p>After Install Plugin Add remote server</p>

<p><a href="https://i.sstatic.net/bPiDF.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/bPiDF.png" alt="enter image description here"></a></p>

<p>After Add remote server you can find in <strong>Build</strong> section <strong>Send file or Execute command over SSH</strong>  </p>

<p>Here you can write command for Tomcat start/stop/restart</p>

<p>for more details visit this URL: <a href="https://medium.com/@weblab_tech/how-to-publish-artifacts-in-jenkins-f021b17fde71" rel="nofollow noreferrer">https://medium.com/@weblab_tech/how-to-publish-artifacts-in-jenkins-f021b17fde71</a></p>

CC BY-SA 4.0
2019-02-08T05:37:19.677Z
2019-02-08T05:37:19.677Z
Subhash
<p>I want to stop Tomcat using Jenkins. Tomcat is running as a separate application server, I want to restart it using the Jenkins console.</p>

<jenkins>
Tomcat Restart from Jenkins
Abhishek
# Tomcat Restart from Jenkins

(Asked by: username_0 on 2019-02-07)

I want to stop Tomcat using Jenkins. Tomcat is running as a separate application server, I want to restart it using the Jenkins console.

**Tags:** jenkins


---

## 2 answers

### Answer by username_1 on 2019-02-07. Score: 1

Easiest way to do that would be to ssh from Jenkins to your application server and then run the command to restart your Jenkins. You can either just write down the command inside an "Execute Shell" step, or use a plugin, like this one:
<https://wiki.jenkins.io/display/JENKINS/SSH+plugin>


---

### Answer by username_2 on 2019-02-08. Score: 1

It’s possible to use **Publish Over SSH Plugin**. Lets set up ssh connection details in the settings interface of Jenkins. We assign server a name, an address, user’s name and authorization way — by password, passphrase orindicatedcate key. These adjustments are simple and easy. You may found more details the on plugin’s page.

After Install Plugin Add remote server

[![enter image description here](https://i.sstatic.net/bPiDF.png)](https://i.sstatic.net/bPiDF.png)

After Add remote server you can find in **Build** section **Send file or Execute command over SSH**

Here you can write command for Tomcat start/stop/restart

for more details visit this URL: <https://medium.com/@weblab_tech/how-to-publish-artifacts-in-jenkins-f021b17fde71>


---

