10

I'm trying to update Jenkins on Centos7

When I run service Jenkins status command I can see that Jenkins is active.

When I try to connect to Jenkins using the browser I'm getting this message:

refused to connect to http://*****:8080.

I have followed the following steps but it's not working:

1) Run service Jenkins stop command.

2) Replaced Jenkins.war with the new one.

3) Run service Jenkins start command.

11
  • Use ps to confirm that the process has actually stopped / started.
    – luka5z
    Commented May 8, 2016 at 7:34
  • Is your URL http://*****:8080 or http://*****:8080/jenkins?
    – luka5z
    Commented May 8, 2016 at 7:36
  • after starting jenkins service i can see that it's really running, when i write ps -ef|grep jenkins i can see the process.
    – Roni
    Commented May 8, 2016 at 7:42
  • it's http://******:8080
    – Roni
    Commented May 8, 2016 at 7:42
  • does i have to wait a several minutes till i can load jenkins using browser ?
    – Roni
    Commented May 8, 2016 at 7:43

2 Answers 2

26

i update it using this command :

yum update jenkins

it's working well

1
  • Is it safe to simply do " yum update jenkins " without stopping Jenkins (with " service Jenkins stop ") ? Commented Jun 13, 2019 at 14:37
14

This worked for me on RedHat distribution:

sudo service jenkins stop
yum update jenkins
sudo service jenkins start
1
  • 3
    If you got error Public key for jenkins-xx.noarch.rpm is not installed, you may use: sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key More information here. Commented May 3, 2020 at 22:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.