LoginSignup
17
17

More than 5 years have passed since last update.

Jenkinsを再インストール

Posted at

Jenkinsは終了しておく。
クリーン状態にするには、以下を削除して、Jenkinsを再インストール。

  • /var/cache/jenkins
  • /var/lib/jenkins/

 # yum check-update
 # yum update

 # yum clean all
 # yum remove jenkins

ここで、以下の様なバックアップしといたよ。って内容のメッセージが出る

警告: /etc/yum.repos.d/jenkins.repo は /etc/yum.repos.d/jenkins.repo.rpmsave として保存されました。

警告: /etc/sysconfig/jenkins は /etc/sysconfig/jenkins.rpmsave として保存されました。

が、使わないので、削除する。(コマンドは省略)

再インストール

(参照:http://pkg.jenkins-ci.org/redhat/)

 # yum clean all
 # wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
 # rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
 # yum install -y jenkins
 # service jenkins start

http://localhost:8080/
にアクセスして、いつものオッサンを確認。

当然ながら、各種ジョブはなくなってクリーンな状態になってます。

17
17
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
17
17