1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MACへJenkinsをインストール(JENKINS_HOME編)

1
Last updated at Posted at 2015-10-01

Jenkinsのジョブが無くなった(見れなくなった)時

MACのOSをバージョンアップしてJenkins立ち上げ直したら、Jenkinsさんが(Web上が)クリーンな状態になっていた・・・。

「新しいジョブを追加してください」

え!?MAC上にジョブのフォルダはあるのに、なんでそんな清々しい顔でキレイさっぱりジョブなんてありませんよと言い放つのだろうか(顔は変わってない)。

というわけでいろいろ調べていたら、JENKINS_HOMEが変わっていました。。。
(というか自分が変えてたのがデフォに戻った?)

MACの環境変数(JENKINS_HOME)を変更

# JENKINS_HOMEのPathを確認
echo $JENKINS_HOME

# 自分の意図しているJenkinsのホームディレクトリを設定
export JENKINS_HOME=/Users/Shared/Jenkins/Home 

# JENKINS_HOMEのPathを再確認(ちゃんと変更されてるかどうか)
echo $JENKINS_HOME

これでJenkins再起動をしたら、無事ジョブがWebの一覧に表示されました。

1
2
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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?