<p>You can overwrite the existing jenkins.war file with the new one and then restart Jenkins.</p>

<p>This file is usually located in /usr/share/jenkins.</p>

<p>If this is not the case for your system, in Manage Jenkins -> System Information, it will display the path to the .war file under executable-war.</p>

CC BY-SA 3.0
2017-03-06T10:11:50.353Z
How does this answer the question ?
Tensibai
CC BY-SA 3.0
2017-03-06T07:57:08.597Z
2017-03-06T07:57:08.597Z
Ashish Karpe
<p>Yes, it is possible. In Windows, this is what I see when there is a new version available:
<a href="https://i.sstatic.net/Qn2C4.png" rel="noreferrer"><img src="https://i.sstatic.net/Qn2C4.png" alt="enter image description here"></a></p>

<p>When you click the Upgrade Automatically button, Jenkins downloads and install the new war file itself.</p>

<p>Please, check <a href="https://wiki.jenkins.io/display/JENKINS/Automated+Upgrade" rel="noreferrer">Jenkins wiki</a> for further details. There are some problems if you installed Jenkins from a Debian package.</p>

<blockquote>
  <p>If you run Jenkins with <code>java -jar jenkins.war</code>, Jenkins will be able to update itself from the Manage Jenkins page. This is the simplest way to do automatic upgrades.</p>
</blockquote>

<h3>*nix/Mac</h3>

<blockquote>
  <p>If you've installed via the OS X installer, the <code>jenkins</code> running the process does not own the <code>.war</code> file. <strong>To get auto-upgrade working, just fix the permissions so the <code>jenkins</code> user can write the WAR</strong> (in <code>/Applications/Jenkins</code>).</p>
</blockquote>

<h3>Debian Package</h3>

<blockquote>
  <p>Using the Upgrade-Button from within Jenkins (available since 1.318) will not work if Jenkins was installed from a Debian package (results in permission denied errors when trying to download the new WAR file)!</p>
</blockquote>

<h3>Windows Auto-Upgrade</h3>

<blockquote>
  <p>If you install Jenkins as a Windows service, Jenkins will be able to update itself from the <em>Manage Jenkins</em> page.</p>
</blockquote>

CC BY-SA 3.0
2017-06-27T07:54:49.893Z
2017-06-27T09:54:51.453Z
2017-06-27T09:54:51.453Z
WarioNeila
<p>On <em>Manage Jenkins</em> I've a message that:</p>

<blockquote>
  <p>New version of Jenkins (2.47) is available for download (changelog).</p>
</blockquote>

<p>Is there any way of upgrading Jenkins from the GUI similar as it's done for the plugins?</p>

<p>I'm using Jenkins ver. 2.43 on Linux.</p>

CC BY-SA 3.0
2017-02-28T17:54:45.407Z
Doesn't answer your question so I will not post an answer but the ideal case should be having a Jenkins deployed with terraform and ansible (or puppet or chef ...) and upgrade the formulas for that.
Gepser Hoil
CC BY-SA 3.0
2017-02-28T18:03:41.527Z
Not sure what you're asking @kenorb... When there's a new Jenkins version it prompts you to ask if you want to install it. you mean besides that?
Assaf Lavie
CC BY-SA 3.0
2017-02-28T18:06:39.453Z
It's showing the message to upgrade and download WAR file, but I don't think the new version is available via Apt, so I'm looking for similar upgrade process as plugins.
kenorb
<jenkins><upgrade>
Is it possible to upgrade Jenkins from Jenkins it-self?
kenorb
# Is it possible to upgrade Jenkins from Jenkins it-self?

(Asked by: username_0 on 2017-02-28)

On *Manage Jenkins* I've a message that:

> New version of Jenkins (2.47) is available for download (changelog).

Is there any way of upgrading Jenkins from the GUI similar as it's done for the plugins?

I'm using Jenkins ver. 2.43 on Linux.

**Tags:** jenkins, upgrade

> **Comments:**
> **username_1**: Doesn't answer your question so I will not post an answer but the ideal case should be having a Jenkins deployed with terraform and ansible (or puppet or chef ...) and upgrade the formulas for that.  
> **username_2**: Not sure what you're asking @username_0... When there's a new Jenkins version it prompts you to ask if you want to install it. you mean besides that?  
> **username_0**: It's showing the message to upgrade and download WAR file, but I don't think the new version is available via Apt, so I'm looking for similar upgrade process as plugins.  

---

## 2 answers

### Answer by username_5 on 2017-06-27. Score: 19 | Accepted answer

Yes, it is possible. In Windows, this is what I see when there is a new version available:
[![enter image description here](https://i.sstatic.net/Qn2C4.png)](https://i.sstatic.net/Qn2C4.png)

When you click the Upgrade Automatically button, Jenkins downloads and install the new war file itself.

Please, check [Jenkins wiki](https://wiki.jenkins.io/display/JENKINS/Automated+Upgrade) for further details. There are some problems if you installed Jenkins from a Debian package.

> If you run Jenkins with `java -jar jenkins.war`, Jenkins will be able to update itself from the Manage Jenkins page. This is the simplest way to do automatic upgrades.

### \*nix/Mac

> If you've installed via the OS X installer, the `jenkins` running the process does not own the `.war` file. **To get auto-upgrade working, just fix the permissions so the `jenkins` user can write the WAR** (in `/Applications/Jenkins`).

### Debian Package

> Using the Upgrade-Button from within Jenkins (available since 1.318) will not work if Jenkins was installed from a Debian package (results in permission denied errors when trying to download the new WAR file)!

### Windows Auto-Upgrade

> If you install Jenkins as a Windows service, Jenkins will be able to update itself from the *Manage Jenkins* page.


---

### Answer by username_3 on 2017-03-06. Score: 3

You can overwrite the existing jenkins.war file with the new one and then restart Jenkins.

This file is usually located in /usr/share/jenkins.

If this is not the case for your system, in Manage Jenkins -> System Information, it will display the path to the .war file under executable-war.

> **Comments:**
> **username_4**: How does this answer the question ?  

---

