Upgrade manually doesn't works

13 views
Skip to first unread message

YusufSalahAdDin

unread,
Oct 7, 2016, 4:28:29 AM10/7/16
to Jenkins Users
I installed jenkins in docker container and i want update it.

So, manually, using root user i downloaded the war file and replace it with old war file, i verified it:
jenkins@fdfeef9f1f14:/$ java -jar /usr/share/jenkins/jenkins.war  --version
2.24
But, when i go to jenkins dashboard, well, i still have the old version: 2.23.

I restarted jenkins using url: jenkins.mydomain.com/restart, many times, but i have still the same jenkins version.

What i have wrong?

Thanks guys!

nicolas de loof

unread,
Oct 7, 2016, 4:30:45 AM10/7/16
to jenkins...@googlegroups.com
Don't update jenkins.war inside container, just pull a newer docker image and start a fresh new container using same jenkins_home volume


--
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-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e6848710-50b5-49be-af1e-5508f7db22f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

YusufSalahAdDin

unread,
Oct 7, 2016, 4:36:33 AM10/7/16
to Jenkins Users
Ok, i feel so good with this, but i have a problem with it: i'm using a custom image that download this war and install it, using CentOS, you know, for get more control with this, but, i have a problem upgrading it, and you can see in other thread that i post in this group.


El viernes, 7 de octubre de 2016, 3:30:45 (UTC-5), nicolas de loof escribió:
Don't update jenkins.war inside container, just pull a newer docker image and start a fresh new container using same jenkins_home volume

2016-10-07 10:28 GMT+02:00 YusufSalahAdDin <alag...@gmail.com>:
I installed jenkins in docker container and i want update it.

So, manually, using root user i downloaded the war file and replace it with old war file, i verified it:
jenkins@fdfeef9f1f14:/$ java -jar /usr/share/jenkins/jenkins.war  --version
2.24
But, when i go to jenkins dashboard, well, i still have the old version: 2.23.

I restarted jenkins using url: jenkins.mydomain.com/restart, many times, but i have still the same jenkins version.

What i have wrong?

Thanks guys!

--
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.

nicolas de loof

unread,
Oct 7, 2016, 7:00:04 AM10/7/16
to jenkins...@googlegroups.com
Your custom image should be built using a Dockerfile to download a specific version of jenkins war (just like the official image does)
Docker should be used with "immutable infrastructure" in mind, don't try to run upgrades in a container, this isn't a VM

To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6aea7d4c-9206-4ab7-ba42-6bedc88d7d67%40googlegroups.com.

YusufSalahAdDin

unread,
Oct 8, 2016, 1:45:09 AM10/8/16
to Jenkins Users
There is a way to delete cache in docker and refresh images?

After three days trying update it today in local i have the new version, but TODAY!


El viernes, 7 de octubre de 2016, 6:00:04 (UTC-5), nicolas de loof escribió:
Your custom image should be built using a Dockerfile to download a specific version of jenkins war (just like the official image does)
Docker should be used with "immutable infrastructure" in mind, don't try to run upgrades in a container, this isn't a VM
2016-10-07 10:36 GMT+02:00 YusufSalahAdDin <alag...@gmail.com>:
Ok, i feel so good with this, but i have a problem with it: i'm using a custom image that download this war and install it, using CentOS, you know, for get more control with this, but, i have a problem upgrading it, and you can see in other thread that i post in this group.

El viernes, 7 de octubre de 2016, 3:30:45 (UTC-5), nicolas de loof escribió:
Don't update jenkins.war inside container, just pull a newer docker image and start a fresh new container using same jenkins_home volume


2016-10-07 10:28 GMT+02:00 YusufSalahAdDin <alag...@gmail.com>:
I installed jenkins in docker container and i want update it.

So, manually, using root user i downloaded the war file and replace it with old war file, i verified it:
jenkins@fdfeef9f1f14:/$ java -jar /usr/share/jenkins/jenkins.war  --version
2.24
But, when i go to jenkins dashboard, well, i still have the old version: 2.23.

I restarted jenkins using url: jenkins.mydomain.com/restart, many times, but i have still the same jenkins version.

What i have wrong?

Thanks guys!

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e6848710-50b5-49be-af1e-5508f7db22f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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.

Baptiste Mathus

unread,
Oct 8, 2016, 8:15:41 AM10/8/16
to jenkins...@googlegroups.com
What do you mean? Would you be able to push your image somewhere in public on GitHub, or a simplified version?

docker build --no-cache .

to disable the build cache.

Not sure that is what you mean, though.

To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0cdc8653-118a-438f-9244-9526e556c587%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages