How to upgrade Jenkins manually?

1,312 views
Skip to first unread message

cjs1976

unread,
Mar 18, 2013, 6:24:19 PM3/18/13
to jenkins...@googlegroups.com
Hi!

How can I manually update Jenkins?

I tried to deploy the new war file, overwriting the existing one, restart the application but it still see the old version number.

I also tried to delete and install new, but I also see only the old version number.

I have no idea.

Thanks for help,
Christian.

Mark Waite

unread,
Mar 18, 2013, 7:16:05 PM3/18/13
to jenkins...@googlegroups.com
It depends where you're running Jenkins.

If you're on a Windows machine and are running from a Desktop application (not a service), then stop the Jenkins process, replace the war file, and restart the Jenkins process.

If you're on a Windows machine and are running as a service (installed with the Jenkins MSI installer), then use the operating system tools (MSI, etc.) to upgrade to the newer Jenkins version.

If you're on a Linux, FreeBSD, or OpenBSD machine, you should use the operating system package management tools to update Jenkins.

Where are you running Jenkins?

Are you certain that the war file you deployed is the war file which is being used to run Jenkins?

Mark Waite



From: cjs1976 <hot...@software-agentur.com>
To: jenkins...@googlegroups.com
Sent: Monday, March 18, 2013 4:24 PM
Subject: How to upgrade Jenkins manually?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


cjs1976

unread,
Mar 19, 2013, 4:16:16 AM3/19/13
to jenkins...@googlegroups.com, Mark Waite
Hello Mark!

I have a Windows 2003 R2 Server, and there runs a GlassFish 3.1.2.2 (build 5) as a service.

I created the JENKINS_HOME envoronment variable, restartet the GlassFish, deployed the original Jenkins 1.504 war file, and everything seems to be working. Jenkins uses the directory I want, and the builds are also working.

Then there was the 1.505 update, and yesterday the 1.506 update.

First I tried to deploy with the overwrite function and a restart of the application, but it doesn't work. This should be the official way for an update when not using Jenkins at a service itself?

Then I tried to undeploy the application and deploy it new, but it's still the old version.

If I look in the application directory, I see, that the files are new, and also in the MANIFEST.MF I see the right version number (1.506).

I also restartet my whole server, but I still see the version 1.504 in my Jenkins.

I think, the problem comes because I use a special directory for the Jenkins data. But I need to do this, I don't want the files to be in the user folder.

Any idea?

Greetings,
Christian.

Mark Waite

unread,
Mar 19, 2013, 3:50:22 PM3/19/13
to jenkins...@googlegroups.com
Unfortunately, I'm not a Glassfish user, so I can't offer any helpful insights about how to perform an upgrade in that context.

Do you really need to run under Glassfish, or could you simplify your life and run with the Winstone server so that Jenkins is trivial to administer?

Mark Waite


Cc: Mark Waite <mark...@yahoo.com>
Sent: Tuesday, March 19, 2013 2:16 AM
Subject: Re: How to upgrade Jenkins manually?

cjs1976

unread,
Mar 20, 2013, 4:07:13 AM3/20/13
to jenkins...@googlegroups.com, Mark Waite
Hello Mark!

I have to support many different Java EE applications. And I brought them all together under GlassFish, so that I don't need to have a lot of different systems running.

So in this case, I am not able to change to another application server.

I choosed GlassFish because its the referenze implementation, and I have no problem with other applications (like Nexus).

Thanks,
Christian.

cjs1976

unread,
Mar 20, 2013, 6:13:47 AM3/20/13
to jenkins...@googlegroups.com, Mark Waite
After playing some hours, I found the very simple solution:

1. Stop GlassFish service.

2. Delete the whole content of the jenkins folder in the applications folder of the domain of the GlassFish.

3. Extract the new war file into the jenkins folder on the applications folder of the domain of the GlassFish.

4. Start GlassFish and go for a coffee, because of the GlassFish speed ;-)

5. Now Jenkins is on the new version.

6. Check the Jenkins Plugins...

I don't know why this works, because if I did an undeploay and a depoly of the new version. I also tried the overwrite function. And it looked like the files where with the correct date and time...

But with the above solution the update works :-)

Greetings,
Christian.
Reply all
Reply to author
Forward
0 new messages