#author("2019-01-23T22:35:19+09:00","","")
#author("2019-01-23T22:36:31+09:00","","")
#nofollow
#norelated
総数:&counter(total); 今日:&counter(today); 昨日:&counter(yesterday);

* もくじ [#d890beda]

#contents

*install SSH Server on Ubuntu 18.04.1 [#o465b5c1]
参考URL https://linuxconfig.org/how-to-install-ssh-server-on-ubuntu-16-04-xenial-linux &br;
**install SSH Server [#id965cf8]
 $ sudo apt -y install ssh

 パッケージリストを読み込んでいます... 完了
 依存関係ツリーを作成しています                
 状態情報を読み取っています... 完了
 以下の追加パッケージがインストールされます:
   ncurses-term openssh-server openssh-sftp-server ssh-import-id
 提案パッケージ:
   molly-guard monkeysphere rssh ssh-askpass
 以下のパッケージが新たにインストールされます:
   ncurses-term openssh-server openssh-sftp-server ssh ssh-import-id
 アップグレード: 0 個、新規インストール: 5 個、削除: 0 個、保留: 168 個。
 642 kB のアーカイブを取得する必要があります。
 この操作後に追加で 5,422 kB のディスク容量が消費されます。
 続行しますか? [Y/n] Y
 取得:1 http://jp.archive.ubuntu.com/ubuntu bionic/main amd64 openssh-sftp-server amd64 1:7.6p1-4 [45.5 kB]
 取得:2 http://jp.archive.ubuntu.com/ubuntu bionic/main amd64 openssh-server amd64 1:7.6p1-4 [332 kB]
 取得:3 http://jp.archive.ubuntu.com/ubuntu bionic/main amd64 ssh all 1:7.6p1-4 [5,188 B]
 取得:4 http://jp.archive.ubuntu.com/ubuntu bionic-updates/main amd64 ncurses-term all 6.1-1ubuntu1.18.04 [248 kB]
 取得:5 http://jp.archive.ubuntu.com/ubuntu bionic-updates/main amd64 ssh-import-id all 5.7-0ubuntu1.1 [10.9 kB]
 642 kB を 0秒 で取得しました (2,224 kB/s) 
 パッケージを事前設定しています ...
 以前に未選択のパッケージ openssh-sftp-server を選択しています。
 (データベースを読み込んでいます ... 現在 150354 個のファイルとディレクトリがインストールされています。)
 .../openssh-sftp-server_1%3a7.6p1-4_amd64.deb を展開する準備をしています ...
 openssh-sftp-server (1:7.6p1-4) を展開しています...
 以前に未選択のパッケージ openssh-server を選択しています。
 .../openssh-server_1%3a7.6p1-4_amd64.deb を展開する準備をしています ...
 openssh-server (1:7.6p1-4) を展開しています...
 以前に未選択のパッケージ ssh を選択しています。
 .../ssh_1%3a7.6p1-4_all.deb を展開する準備をしています ...
 ssh (1:7.6p1-4) を展開しています...
 以前に未選択のパッケージ ncurses-term を選択しています。
 .../ncurses-term_6.1-1ubuntu1.18.04_all.deb を展開する準備をしています ...
 ncurses-term (6.1-1ubuntu1.18.04) を展開しています...
 以前に未選択のパッケージ ssh-import-id を選択しています。
 .../ssh-import-id_5.7-0ubuntu1.1_all.deb を展開する準備をしています ...
 ssh-import-id (5.7-0ubuntu1.1) を展開しています...
 ncurses-term (6.1-1ubuntu1.18.04) を設定しています ...
 ufw (0.35-5) のトリガを処理しています ...
 ureadahead (0.100.0-20) のトリガを処理しています ...
 openssh-sftp-server (1:7.6p1-4) を設定しています ...
 systemd (237-3ubuntu10.3) のトリガを処理しています ...
 man-db (2.8.3-2) のトリガを処理しています ...
 ssh-import-id (5.7-0ubuntu1.1) を設定しています ...
 openssh-server (1:7.6p1-4) を設定しています ...
 
 Creating config file /etc/ssh/sshd_config with new version
 Creating SSH2 RSA key; this may take some time ...
 2048 SHA256:cLhdyS6T2FHIFVs2HpNmOPHxYnEtcq9myKG/A0h9PS8 root@ubdt18041 (RSA)
 Creating SSH2 ECDSA key; this may take some time ...
 256 SHA256:5wLpCfANsugRzLMpfuukGQs3bs8m+IYofvqr9RpkAzw root@ubdt18041 (ECDSA)
 Creating SSH2 ED25519 key; this may take some time ...
 256 SHA256:FGaXoCFzTq/XmOzBHzAbjNqo6YxHRECFGiNadUYWblU root@ubdt18041 (ED25519)
 Created symlink /etc/systemd/system/sshd.service → /lib/systemd/system/ssh.service.
 Created symlink /etc/systemd/system/multi-user.target.wants/ssh.service → /lib/systemd/system/ssh.service.
 ssh (1:7.6p1-4) を設定しています ...
 ureadahead (0.100.0-20) のトリガを処理しています ...
 systemd (237-3ubuntu10.3) のトリガを処理しています ...
 ufw (0.35-5) のトリガを処理しています ...

**start the SSH server using the following command [#p659da32]
 $ sudo service ssh start

**To automatically start your SSH server after reboot [#j2423a8d]
 $ sudo systemctl enable ssh

 Synchronizing state of ssh.service with SysV init with /lib/systemd/systemd-sysv-install.
 Executing /lib/systemd/systemd-sysv-install enable ssh


*UbuntuからWindowsの共有フォルダを自動マウントする [#r8e649b7]
下記を参考に操作するWindowsの共有フォルダを自動マウントするようにしておく&br;
http://foxtail.lv9.org/wiki/doc/pukiwiki-1_5_1_utf8/index.php?mount%20command#o9dce617

*Installation [#v632812b]
 ~$ wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
 OK

 ~$ sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'

 ~$ sudo apt update

 ヒット:1 http://jp.archive.ubuntu.com/ubuntu bionic InRelease
 ヒット:2 http://jp.archive.ubuntu.com/ubuntu bionic-updates InRelease                                    
 ヒット:3 http://jp.archive.ubuntu.com/ubuntu bionic-backports InRelease                                  
 ヒット:4 http://security.ubuntu.com/ubuntu bionic-security InRelease                                           
 無視:5 http://pkg.jenkins.io/debian-stable binary/ InRelease  
 取得:6 http://pkg.jenkins.io/debian-stable binary/ Release [2,042 B]
 取得:7 http://pkg.jenkins.io/debian-stable binary/ Release.gpg [181 B]
 取得:8 http://pkg.jenkins.io/debian-stable binary/ Packages [13.6 kB]
 15.8 kB を 1秒 で取得しました (11.6 kB/s)
 パッケージリストを読み込んでいます... 完了
 依存関係ツリーを作成しています       
 状態情報を読み取っています... 完了
 アップグレードできるパッケージが 168 個あります。表示するには 'apt list --upgradable' を実行してください。

**方法1 apt-getでインストールする [#e9e0da09]

 ~$ sudo apt-get install jenkins

 パッケージリストを読み込んでいます... 完了
 依存関係ツリーを作成しています                
 状態情報を読み取っています... 完了
 以下の追加パッケージがインストールされます:
   daemon
 以下のパッケージが新たにインストールされます:
   daemon jenkins
 アップグレード: 0 個、新規インストール: 2 個、削除: 0 個、保留: 4 個。
 69.0 MB のアーカイブを取得する必要があります。
 この操作後に追加で 70.1 MB のディスク容量が消費されます。
 続行しますか? [Y/n] Y
 取得:1 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 daemon amd64 0.6.4-1 [98.2 kB]
 取得:2 http://pkg.jenkins.io/debian-stable binary/ jenkins 2.19.1 [68.9 MB]
 69.0 MB を 10秒 で取得しました (6,299 kB/s)                                                                                                                                                   
 以前に未選択のパッケージ daemon を選択しています。
 (データベースを読み込んでいます ... 現在 190132 個のファイルとディレクトリがインストールされています。)
 .../daemon_0.6.4-1_amd64.deb を展開する準備をしています ...
 daemon (0.6.4-1) を展開しています...
 以前に未選択のパッケージ jenkins を選択しています。
 .../jenkins_2.19.1_all.deb を展開する準備をしています ...
 jenkins (2.19.1) を展開しています...
 man-db (2.7.5-1) のトリガを処理しています ...
 systemd (229-4ubuntu10) のトリガを処理しています ...
 ureadahead (0.100.0-19) のトリガを処理しています ...
 daemon (0.6.4-1) を設定しています ...
 jenkins (2.19.1) を設定しています ...
 systemd (229-4ubuntu10) のトリガを処理しています ...
 ureadahead (0.100.0-19) のトリガを処理しています ...

バージョンを確認
-2.19.1 だった。

**方法2 古いバージョンの場合は debパッケージを取得してインストールする [#i9c6a869]

https://pkg.jenkins.io/debian-stable/ からインストールしたいバージョンを探す
例 2.138.2 をインストールしたい場合

 ~$ wget https://pkg.jenkins.io/debian-stable/binary/jenkins_2.138.2_all.deb

 --2018-10-15 22:37:28--  https://pkg.jenkins.io/debian-stable/binary/jenkins_2.138.2_all.deb
 pkg.jenkins.io (pkg.jenkins.io) をDNSに問いあわせています... 52.202.51.185
 pkg.jenkins.io (pkg.jenkins.io)|52.202.51.185|:443 に接続しています... 接続しました。
 HTTP による接続要求を送信しました、応答を待っています... 302 Found
 場所: https://prodjenkinsreleases.blob.core.windows.net/debian-stable/jenkins_2.138.2_all.deb [続く]
 --2018-10-15 22:37:29--  https://prodjenkinsreleases.blob.core.windows.net/debian-stable/jenkins_2.138.2_all.deb
 prodjenkinsreleases.blob.core.windows.net (prodjenkinsreleases.blob.core.windows.net) をDNSに問いあわせています... 104.208.128.30
 prodjenkinsreleases.blob.core.windows.net (prodjenkinsreleases.blob.core.windows.net)|104.208.128.30|:443 に接続しています... 接続しました。
 HTTP による接続要求を送信しました、応答を待っています... 200 OK
 長さ: 75496730 (72M) [application/x-debian-package]
 `jenkins_2.138.2_all.deb' に保存中
 
 jenkins_2.138.2_all.deb          100%[=======================================================>]  72.00M   451KB/s    時間 2m 59s
 
 2018-10-15 22:40:29 (412 KB/s) - `jenkins_2.138.2_all.deb' へ保存完了 [75496730/75496730]
 

 ~$ sudo apt install daemon

 パッケージリストを読み込んでいます... 完了
 依存関係ツリーを作成しています                
 状態情報を読み取っています... 完了
 以下のパッケージが新たにインストールされます:
   daemon
 アップグレード: 0 個、新規インストール: 1 個、削除: 0 個、保留: 168 個。
 99.5 kB のアーカイブを取得する必要があります。
 この操作後に追加で 288 kB のディスク容量が消費されます。
 取得:1 http://jp.archive.ubuntu.com/ubuntu bionic/universe amd64 daemon amd64 0.6.4-1build1 [99.5 kB]
 99.5 kB を 0秒 で取得しました (598 kB/s)
 以前に未選択のパッケージ daemon を選択しています。
 (データベースを読み込んでいます ... 現在 153171 個のファイルとディレクトリがインストールされています。)
 .../daemon_0.6.4-1build1_amd64.deb を展開する準備をしています ...
 daemon (0.6.4-1build1) を展開しています...
 man-db (2.8.3-2) のトリガを処理しています ...
 daemon (0.6.4-1build1) を設定しています ...

 ~$ sudo dpkg -i jenkins_2.138.2_all.deb

 以前に未選択のパッケージ jenkins を選択しています。
 (データベースを読み込んでいます ... 現在 153179 個のファイルとディレクトリがインストールされています。)
 jenkins_2.138.2_all.deb を展開する準備をしています ...
 jenkins (2.138.2) を展開しています...
 jenkins (2.138.2) を設定しています ...
 ureadahead (0.100.0-20) のトリガを処理しています ...
 systemd (237-3ubuntu10.3) のトリガを処理しています ...
 

*/etc/default/jenkinsの編集 [#t07c989f]
 ~$ sudo gvim -f /etc/default/jenkins
-arguments to pass to java に「JAVA_ARGS="-Dfile.encoding=utf-8"」を行追記(Git Pluginの文字化け対応)
-port for HTTP connector の HTTP_PORT=8080 を  環境に合わせて必要なら変更する。<br>
 例: HTTP_PORT=4000
-arguments to pass to jenkins.の"JENKINS_ARGS"に"--prefix=/jenkins"を行末に追加(URLをサブディレクトリ式にする為)

編集例
 ~$ colordiff -pu /etc/default/jenkins.default /etc/default/jenkins

 --- /etc/default/jenkins.default	2016-10-05 00:20:48.000000000 +0900
 +++ /etc/default/jenkins	2016-10-10 18:17:07.879767718 +0900
 @@ -10,6 +10,7 @@ JAVA=/usr/bin/java
  JAVA_ARGS="-Djava.awt.headless=true"  # Allow graphs etc. to work even when an X server is present
  #JAVA_ARGS="-Xmx256m"
  #JAVA_ARGS="-Djava.net.preferIPv4Stack=true" # make jenkins listen on IPv4 address
 +JAVA_ARGS="-Dfile.encoding=utf-8" # avoid garbled characters in Git Plugin
  
  PIDFILE=/var/run/$NAME/$NAME.pid
  
 @@ -54,8 +55,8 @@ MAXOPENFILES=8192
  # UMASK=027
  
  # port for HTTP connector (default 8080; disable with -1)
 -HTTP_PORT=8080
 -
 +#HTTP_PORT=8080
 +HTTP_PORT=4000
  
  # servlet context, important if you want to use apache proxying  
  PREFIX=/$NAME
 @@ -69,4 +70,4 @@ PREFIX=/$NAME
  # --webroot=~/.jenkins/war
  # --prefix=$PREFIX
  
 -JENKINS_ARGS="--webroot=/var/cache/$NAME/war --httpPort=$HTTP_PORT"
 +JENKINS_ARGS="--webroot=/var/cache/$NAME/war --httpPort=$HTTP_PORT --prefix=/jenkins"



*restart jenkins [#c30e9a14]
 ~$ sudo service jenkins restart
  * Restarting Jenkins Continuous Integration Server jenkins                                                                                                                         

*getting start [#h66ed197]
**ブラウザで接続 [#fd0b4ecf]
 http://<hostname>:<port>/jenkins/
-Unlock Jenkins画面が表示される
**下記ファイルの初期パスワードを Administrator password エディットボックスへペースト [#k2239eb8]
 /var/lib/jenkins/secrets/initialAdminPassword
**画面右下の continue ボタンを選択する [#p68c04ef]
-Customize Jenkins 画面が表示される
**Install Suggested Plugins ボタンを選択する [#n6ed34b3]
-いくつかのpluginがインストールされる
-Create First Admin User 画面が表示される
**First Admin User 情報を入力する [#bf5ae4c2]
 Username: jenkins
 Password: プリセットされている
 Confirm password: 同じのを入力する
 Full name: <your name>
 E-mail address: <your email address>
**Continue as admin を選択する [#mc1e2f55]
-Jenkins is ready! 画面が表示される
 You've skipped creating an admin user.
 To log in, use the username: 'admin' and the administrator password you used to access the setup wizard.
--スキップしてしまったようだ。
--次回からは username は admin でログインしよう
**Start using Jenkins ボタンを選択する [#z1c32310]

*Pluginを設定する [#kbf0edc8]
**ブラウザで接続 [#s9290128]
 http://<hostname>:<port>/jenkins/
-ログイン画面が表示される
**ログインする [#u10c5eb1]
 Username: admin
 Password: <Administrator password>
-Welcome to Jenkins!画面が表示される
**画面左の Manage Jenkins を選択 [#w6568940]
**Manage Plugins を選択 [#y3590247]
-Plugin Manager画面が表示される
**Availableタブ を選択 [#n84650fb]
***下記のプラグインをインストールする [#c567d23d]
-各プラグインのチェックボックスをチェック状態にしたうえで、「ダウンロードして再起動後にインストール」ボタンを選択する。
-プラグインはここからダウンロード可能
http://updates.jenkins-ci.org/download/plugins/

|プラグイン|説明|備考|h
|SIZE(20):Javadoc Plugin|This plugin adds Javadoc support to Jenkins.|その他 (website)|
|SIZE(20):Filesystem Trigger Plug-in|FSTrigger provides polling mechanisms to monitor a file system and trigger a build if a file or a set of files have changed.|ビルドトリガ|
|SIZE(20):Shelve Project Plugin|This plugin lets you shelve projects so that they can easily be resurrected.|その他 (website)&br;ユーザーインタフェース|
|SIZE(20):Translation Assistance plugin|This plugin adds an additional dialog box in every page, which enables people to contribute localizations for the messages they are seeing in the current page|ユーザーインタフェース|
|SIZE(20):Maven Integration plugin|This plugin provides an advanced integration for Maven 2/3 projects.|ビルドツール|
|SIZE(20):Job Configuration History Plugin|Saves copies of all job and system configurations.|その他 (website)&br;ユーザーインタフェース|
|SIZE(20):Parameterized Trigger plugin|This plugin lets you trigger new builds when your build has completed, with various ways of specifying parameters for the new build.|その他 (website)|
|SIZE(20):CVS Plug-in|This bundled plugin integrates Jenkins with CVS version control system.|ソース管理システム|
|SIZE(20):Copy Artifact Plugin|This bundled plugin integrates Jenkins with CVS version control system.|ソース管理システム|
|SIZE(20):Join plugin|This plugin allows a job to be run after all the immediate downstream jobs have completed.|ビルドトリガ|
|SIZE(20):Files Found Trigger|Build trigger that polls one or more directories and starts a build if certain files are found within those directories.|ビルドトリガ|
|SIZE(20):disk-usage plugin|This plugin records disk usage.|ビルドレポート|
|SIZE(20):SSH Agent Plugin|This plugin allows you to provide SSH credentials to builds via a ssh-agent in Jenkins.|その他 (website)|
|SIZE(20):Rebuilder|This plug-in allows the user to _rebuild_ a _parametrized build_ without entering the _parameters_ again.It will also allow the user to edit the parameters before rebuilding.|その他 (website)|
|SIZE(20):Gerrit Trigger|This plugin integrates Jenkins to Gerrit code review for triggering builds when a "patch set" is created.|ビルドトリガ|
|SIZE(20):&#x54;hinBackup|This plugin simply backs up the global and job specific configurations (not the archive or the workspace).|その他 (website)|
|SIZE(20):Mask Passwords Plugin|This plugin allows masking passwords that may appear in the console|その他 (website)&br;ビルドラッパー|
|SIZE(20):Build Trigger Badge Plugin|This plugin&nbsp;displays icon(s) representing the cause(s) of a build directly in the build history. It lets you quickly know which cause triggered a build.|ユーザーインタフェース|
|SIZE(20):jQuery plugin|This plugin is a library plugin for other plugins to share common jQuery. It also allows users to use jQuery on each view descriptions.|Library plugins (for use by other plugins)|
|SIZE(20):Node and Label parameter plugin|This plugin adds two new parameter types to job configuration - node and label, this allows to dynamically select the node where a job/project should be executed.|Agent Launchers and Controllers&br;Build Parameters&br;ビルドトリガ|
|SIZE(20):Build Pipeline Plugin|This plugin provides a _Build Pipeline View_ of upstream and downstream connected jobs that typically form a build pipeline. &nbsp;In addition, it offers the ability to define manual triggers for jobs that require intervention prior to execution, e.g. an approval process outside of Jenkins.|ビルドツール&br;ビルド後のアクション&br;ユーザーインタフェース|
|SIZE(20):Publish Over CIFS|Send build artifacts to a windows share (CIFS/SMB/samba)|成果物のアップロード|
|SIZE(20):Selenium Auto Exec Server(AES) plugin|This plugin is for continuous regression test by Selenium Auto Exec Server (AES).|ビルドツール&br;ビルドレポート|
|SIZE(20):Mercurial plugin|This plugin integrates the Mercurial version control system with Jenkins.|ソース管理システム|
|SIZE(20):Associated Files Plugin|This plugin allows for marking files or directories outside of Jenkins as related to a build.|ビルド後のアクション|
|SIZE(20):File System SCM|Use File System as SCM.|ソース管理システム|
|SIZE(20):Role-based Authorization Strategy|Adds a new role-based strategy to manage users' permissions.|Security&br;認証/ユーザー管理|
|SIZE(20):Safe Restart|This plugin allows you to restart Jenkins safely.||

**/var/lib/jenkins/plugins/の様子 [#lfbdd7a8]

 jenkins@ubdt18041:~$ ls -la /var/lib/jenkins/plugins/
 合計 64436
 drwxr-xr-x 107 jenkins jenkins   12288 10月 16 22:37 .
 drwxr-xr-x  13 jenkins jenkins    4096  1月 23 21:44 ..
 drwxr-xr-x   7 jenkins jenkins    4096 10月 15 23:01 ace-editor
 -rw-r--r--   1 jenkins jenkins 4279042 10月 15 23:01 ace-editor.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:01 ant
 -rw-r--r--   1 jenkins jenkins   81493 10月 15 23:01 ant.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:00 antisamy-markup-formatter
 -rw-r--r--   1 jenkins jenkins  112796 10月 15 23:00 antisamy-markup-formatter.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:01 apache-httpcomponents-client-4-api
 -rw-r--r--   1 jenkins jenkins 1737923 10月 15 23:01 apache-httpcomponents-client-4-api.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 16 21:36 associated-files
 -rw-r--r--   1 jenkins jenkins   25154 10月 16 21:31 associated-files.hpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:02 authentication-tokens
 -rw-r--r--   1 jenkins jenkins   14638 10月 15 23:02 authentication-tokens.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:00 bouncycastle-api
 -rw-r--r--   1 jenkins jenkins 4290273 10月 15 23:00 bouncycastle-api.jpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 15 23:02 branch-api
 -rw-r--r--   1 jenkins jenkins  278673 10月 15 23:02 branch-api.jpi
 drwxr-xr-x   7 jenkins jenkins    4096 10月 16 21:36 build-pipeline-plugin
 -rw-r--r--   1 jenkins jenkins 1455207 10月 16 21:31 build-pipeline-plugin.hpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:00 build-timeout
 -rw-r--r--   1 jenkins jenkins   95728 10月 15 23:00 build-timeout.jpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 16 21:36 buildtriggerbadge
 -rw-r--r--   1 jenkins jenkins   63620 10月 16 21:31 buildtriggerbadge.hpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 15 23:00 cloudbees-folder
 -rw-r--r--   1 jenkins jenkins  216530 10月 15 23:00 cloudbees-folder.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:00 command-launcher
 -rw-r--r--   1 jenkins jenkins   38884 10月 15 23:00 command-launcher.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 16 21:42 conditional-buildstep
 -rw-r--r--   1 jenkins jenkins   42437 10月 16 21:41 conditional-buildstep.hpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 16 22:37 copy-data-to-workspace-plugin
 -rw-r--r--   1 jenkins jenkins   10894 10月 16 22:36 copy-data-to-workspace-plugin.hpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 16 21:36 copyartifact
 -rw-r--r--   1 jenkins jenkins  110119 10月 16 21:31 copyartifact.hpi
 drwxr-xr-x   6 jenkins jenkins    4096 10月 15 23:00 credentials
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:00 credentials-binding
 -rw-r--r--   1 jenkins jenkins   72225 10月 15 23:00 credentials-binding.jpi
 -rw-r--r--   1 jenkins jenkins  977839 10月 15 23:00 credentials.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 16 21:36 cvs
 -rw-r--r--   1 jenkins jenkins  620330 10月 16 21:31 cvs.hpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 16 21:36 disk-usage
 -rw-r--r--   1 jenkins jenkins  318381 10月 16 21:31 disk-usage.hpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:02 display-url-api
 -rw-r--r--   1 jenkins jenkins   19478 10月 15 23:02 display-url-api.jpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 15 23:02 docker-commons
 -rw-r--r--   1 jenkins jenkins   79629 10月 15 23:02 docker-commons.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:02 docker-workflow
 -rw-r--r--   1 jenkins jenkins   56597 10月 15 23:02 docker-workflow.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:00 durable-task
 -rw-r--r--   1 jenkins jenkins   51746 10月 15 23:00 durable-task.jpi
 drwxr-xr-x   7 jenkins jenkins    4096 10月 15 23:03 email-ext
 -rw-r--r--   1 jenkins jenkins  793781 10月 15 23:03 email-ext.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 16 21:36 files-found-trigger
 -rw-r--r--   1 jenkins jenkins   31560 10月 16 21:31 files-found-trigger.hpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 16 21:36 filesystem_scm
 -rw-r--r--   1 jenkins jenkins   53787 10月 16 21:31 filesystem_scm.hpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 16 21:36 fstrigger
 -rw-r--r--   1 jenkins jenkins  104012 10月 16 21:31 fstrigger.hpi
 drwxr-xr-x   7 jenkins jenkins   12288 10月 16 21:36 gerrit-trigger
 -rw-r--r--   1 jenkins jenkins 5546783 10月 16 21:31 gerrit-trigger.hpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 15 23:03 git
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:01 git-client
 -rw-r--r--   1 jenkins jenkins 2599020 10月 15 23:01 git-client.jpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 15 23:01 git-server
 -rw-r--r--   1 jenkins jenkins   40729 10月 15 23:01 git-server.jpi
 -rw-r--r--   1 jenkins jenkins 2032997 10月 15 23:03 git.jpi
 drwxr-xr-x   7 jenkins jenkins    4096 10月 15 23:03 github
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:03 github-api
 -rw-r--r--   1 jenkins jenkins  697896 10月 15 23:03 github-api.jpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 15 23:03 github-branch-source
 -rw-r--r--   1 jenkins jenkins  271298 10月 15 23:03 github-branch-source.jpi
 -rw-r--r--   1 jenkins jenkins 2429888 10月 15 23:03 github.jpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 15 23:01 gradle
 -rw-r--r--   1 jenkins jenkins   43313 10月 15 23:01 gradle.jpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 15 23:01 handlebars
 -rw-r--r--   1 jenkins jenkins   67784 10月 15 23:01 handlebars.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:01 jackson2-api
 -rw-r--r--   1 jenkins jenkins 1571801 10月 15 23:01 jackson2-api.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 16 21:36 javadoc
 -rw-r--r--   1 jenkins jenkins   32911 10月 16 21:31 javadoc.hpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:00 jdk-tool
 -rw-r--r--   1 jenkins jenkins   69628 10月 15 23:00 jdk-tool.jpi
 drwxr-xr-x   6 jenkins jenkins    4096 10月 16 21:36 jobConfigHistory
 -rw-r--r--   1 jenkins jenkins  161122 10月 16 21:31 jobConfigHistory.hpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 16 21:36 join
 -rw-r--r--   1 jenkins jenkins   32832 10月 16 21:31 join.hpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 16 21:36 jquery
 drwxr-xr-x   5 jenkins jenkins    4096 10月 15 23:01 jquery-detached
 -rw-r--r--   1 jenkins jenkins  211945 10月 15 23:01 jquery-detached.jpi
 -rw-r--r--   1 jenkins jenkins  147135 10月 16 21:31 jquery.hpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:01 jsch
 -rw-r--r--   1 jenkins jenkins  277218 10月 15 23:01 jsch.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:00 junit
 -rw-r--r--   1 jenkins jenkins  361018 10月 15 23:00 junit.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:03 ldap
 -rw-r--r--   1 jenkins jenkins  129449 10月 15 23:03 ldap.jpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 15 23:03 lockable-resources
 -rw-r--r--   1 jenkins jenkins   85148 10月 15 23:03 lockable-resources.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:02 mailer
 -rw-r--r--   1 jenkins jenkins  115745 10月 15 23:02 mailer.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:03 mapdb-api
 -rw-r--r--   1 jenkins jenkins  396306 10月 15 23:03 mapdb-api.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 16 21:36 mask-passwords
 -rw-r--r--   1 jenkins jenkins   44420 10月 16 21:31 mask-passwords.hpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 15 23:03 matrix-auth
 -rw-r--r--   1 jenkins jenkins  117334 10月 15 23:03 matrix-auth.jpi
 drwxr-xr-x   6 jenkins jenkins    4096 10月 15 23:00 matrix-project
 -rw-r--r--   1 jenkins jenkins  229728 10月 15 23:00 matrix-project.jpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 16 21:36 maven-plugin
 -rw-r--r--   1 jenkins jenkins 5216310 10月 16 21:31 maven-plugin.hpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 16 21:36 mercurial
 -rw-r--r--   1 jenkins jenkins  222810 10月 16 21:31 mercurial.hpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 15 23:01 momentjs
 -rw-r--r--   1 jenkins jenkins   37051 10月 15 23:01 momentjs.jpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 16 21:36 nodelabelparameter
 -rw-r--r--   1 jenkins jenkins   67670 10月 16 21:31 nodelabelparameter.hpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:03 pam-auth
 -rw-r--r--   1 jenkins jenkins 1502154 10月 15 23:03 pam-auth.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 16 21:36 parameterized-trigger
 -rw-r--r--   1 jenkins jenkins  137329 10月 16 21:31 parameterized-trigger.hpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:01 pipeline-build-step
 -rw-r--r--   1 jenkins jenkins   32522 10月 15 23:01 pipeline-build-step.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:03 pipeline-github-lib
 -rw-r--r--   1 jenkins jenkins    8479 10月 15 23:03 pipeline-github-lib.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:01 pipeline-graph-analysis
 -rw-r--r--   1 jenkins jenkins   18990 10月 15 23:01 pipeline-graph-analysis.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:01 pipeline-input-step
 -rw-r--r--   1 jenkins jenkins   28145 10月 15 23:01 pipeline-input-step.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:01 pipeline-milestone-step
 -rw-r--r--   1 jenkins jenkins   18994 10月 15 23:01 pipeline-milestone-step.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:01 pipeline-model-api
 -rw-r--r--   1 jenkins jenkins 2417823 10月 15 23:01 pipeline-model-api.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:02 pipeline-model-declarative-agent
 -rw-r--r--   1 jenkins jenkins    6319 10月 15 23:02 pipeline-model-declarative-agent.jpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 15 23:03 pipeline-model-definition
 -rw-r--r--   1 jenkins jenkins 1535976 10月 15 23:03 pipeline-model-definition.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:01 pipeline-model-extensions
 -rw-r--r--   1 jenkins jenkins   32853 10月 15 23:01 pipeline-model-extensions.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:01 pipeline-rest-api
 -rw-r--r--   1 jenkins jenkins  146682 10月 15 23:01 pipeline-rest-api.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:01 pipeline-stage-step
 -rw-r--r--   1 jenkins jenkins   19872 10月 15 23:01 pipeline-stage-step.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:02 pipeline-stage-tags-metadata
 -rw-r--r--   1 jenkins jenkins    9244 10月 15 23:02 pipeline-stage-tags-metadata.jpi
 drwxr-xr-x   7 jenkins jenkins    4096 10月 15 23:01 pipeline-stage-view
 -rw-r--r--   1 jenkins jenkins  202392 10月 15 23:01 pipeline-stage-view.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:00 plain-credentials
 -rw-r--r--   1 jenkins jenkins   16820 10月 15 23:00 plain-credentials.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 16 21:42 publish-over
 drwxr-xr-x   5 jenkins jenkins    4096 10月 16 21:36 publish-over-cifs
 -rw-r--r--   1 jenkins jenkins 3827765 10月 16 21:31 publish-over-cifs.hpi
 -rw-r--r--   1 jenkins jenkins   88192 10月 16 21:41 publish-over.hpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 16 21:36 rebuild
 -rw-r--r--   1 jenkins jenkins   45245 10月 16 21:31 rebuild.hpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:01 resource-disposer
 -rw-r--r--   1 jenkins jenkins   21520 10月 15 23:01 resource-disposer.jpi
 drwxr-xr-x   7 jenkins jenkins    4096 10月 16 21:36 role-strategy
 -rw-r--r--   1 jenkins jenkins   91253 10月 16 21:31 role-strategy.hpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 16 21:44 run-condition
 -rw-r--r--   1 jenkins jenkins  151060 10月 16 21:44 run-condition.hpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 16 21:36 saferestart
 -rw-r--r--   1 jenkins jenkins   19958 10月 16 21:31 saferestart.hpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:00 scm-api
 -rw-r--r--   1 jenkins jenkins  216020 10月 15 23:00 scm-api.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:00 script-security
 -rw-r--r--   1 jenkins jenkins  160994 10月 15 23:00 script-security.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 16 21:36 selenium-aes
 -rw-r--r--   1 jenkins jenkins   16840 10月 16 21:31 selenium-aes.hpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 16 21:36 shelve-project-plugin
 -rw-r--r--   1 jenkins jenkins  199797 10月 16 21:31 shelve-project-plugin.hpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 16 21:36 ssh-agent
 -rw-r--r--   1 jenkins jenkins 2985884 10月 16 21:31 ssh-agent.hpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 15 23:00 ssh-credentials
 -rw-r--r--   1 jenkins jenkins   67292 10月 15 23:00 ssh-credentials.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:03 ssh-slaves
 -rw-r--r--   1 jenkins jenkins  110462 10月 15 23:03 ssh-slaves.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:00 structs
 -rw-r--r--   1 jenkins jenkins   41306 10月 15 23:00 structs.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:03 subversion
 -rw-r--r--   1 jenkins jenkins 6964338 10月 15 23:03 subversion.jpi
 drwxr-xr-x   6 jenkins jenkins    4096 10月 16 21:36 thinBackup
 -rw-r--r--   1 jenkins jenkins  264626 10月 16 21:31 thinBackup.hpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:00 timestamper
 -rw-r--r--   1 jenkins jenkins   76162 10月 15 23:00 timestamper.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:00 token-macro
 -rw-r--r--   1 jenkins jenkins  649686 10月 15 23:00 token-macro.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 16 21:36 translation
 -rw-r--r--   1 jenkins jenkins   48221 10月 16 21:31 translation.hpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:03 workflow-aggregator
 -rw-r--r--   1 jenkins jenkins    8655 10月 15 23:03 workflow-aggregator.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:00 workflow-api
 -rw-r--r--   1 jenkins jenkins  143723 10月 15 23:00 workflow-api.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:02 workflow-basic-steps
 -rw-r--r--   1 jenkins jenkins  129754 10月 15 23:02 workflow-basic-steps.jpi
 drwxr-xr-x   6 jenkins jenkins    4096 10月 15 23:01 workflow-cps
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:01 workflow-cps-global-lib
 -rw-r--r--   1 jenkins jenkins 1965862 10月 15 23:01 workflow-cps-global-lib.jpi
 -rw-r--r--   1 jenkins jenkins  560808 10月 15 23:01 workflow-cps.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:00 workflow-durable-task-step
 -rw-r--r--   1 jenkins jenkins   83568 10月 15 23:00 workflow-durable-task-step.jpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 15 23:01 workflow-job
 -rw-r--r--   1 jenkins jenkins  111622 10月 15 23:01 workflow-job.jpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 15 23:02 workflow-multibranch
 -rw-r--r--   1 jenkins jenkins   85206 10月 15 23:02 workflow-multibranch.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:01 workflow-scm-step
 -rw-r--r--   1 jenkins jenkins   15060 10月 15 23:01 workflow-scm-step.jpi
 drwxr-xr-x   4 jenkins jenkins    4096 10月 15 23:00 workflow-step-api
 -rw-r--r--   1 jenkins jenkins   70101 10月 15 23:00 workflow-step-api.jpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 15 23:00 workflow-support
 -rw-r--r--   1 jenkins jenkins  360909 10月 15 23:00 workflow-support.jpi
 drwxr-xr-x   5 jenkins jenkins    4096 10月 15 23:01 ws-cleanup
 -rw-r--r--   1 jenkins jenkins  311324 10月 15 23:01 ws-cleanup.jpi

** http://<hostname>/jenkins/pluginManager/installed の様子 [#q89426e4]

|plugin|desription|version|
|plugin|desription|version|h
|Ant Plugin| Adds Apache Ant support to Jenkins| 1.8		|
|Apache HttpComponents Client 4.x API Plugin| Bundles Apache HttpComponents Client 4.x and allows it to be used by Jenkins plugins.| 4.5.5-3.0		|
|Associated Files Plugin| This plugin allows for marking files or directories outside of Jenkins as related to a build.| 0.2.1		|
|Authentication Tokens API Plugin| This plugin provides an API for converting credentials into authentication tokens in Jenkins.| 1.3		|
|bouncycastle API Plugin| This plugin provides an stable API to Bouncy Castle related tasks.| 2.17		|
|Branch API Plugin| This plugin provides an API for multiple branch based projects.| 2.0.20		|
|Build Pipeline Plugin| This plugin renders upstream and downstream connected jobs that typically form a build pipeline. In addition, it offers the ability to define manual triggers for jobs that require intervention prior to execution, e.g. an approval process outside of Jenkins.| 1.5.8		|
|Build Timeout| This plugin allows builds to be automatically terminated after the specified amount of time has elapsed.| 1.19		|
|Build Trigger Badge Plugin| This plugin displays an icon representing the cause of a construction.| 2.9		|
|Command Agent Launcher Plugin| Allows agents to be launched using a specified command.| 1.2		|
|Conditional BuildStep| A buildstep wrapping any number of other buildsteps, controlling their execution based on a defined condition (e.g. BuildParameter).| 1.3.6		|
|Copy Artifact Plugin| Adds a build step to copy artifacts from another project.| 1.41		|
|Copy data to workspace plugin| This plugin copies data to workspace directory before each build. After build data will be deleted.| 1.0		|
|Credentials Binding Plugin| Allows credentials to be bound to environment variables for use from miscellaneous build steps.| 1.16		|
|Credentials Plugin| This plugin allows you to store credentials in Jenkins.| 2.1.18		|
|CVS Plug-in| Integrates Jenkins with CVS version control system using a modified version of the Netbeans cvsclient.| 2.14		|
|disk-usage plugin| This plugin counts disk usage.| 0.28		|
|Display URL API| Provides the DisplayURLProvider extension point to provide alternate URLs for use in notifications| 2.2.0		|
|Docker Commons Plugin| Provides the common shared functionality for various Docker-related plugins.| 1.13		|
|Docker Pipeline| Build and use Docker containers from pipelines.| 1.17		|
|Durable Task Plugin| Library offering an extension point for processes which can run outside of Jenkins yet be monitored.| 1.26		|
|Email Extension Plugin| This plugin is a replacement for Jenkins's email publisher. It allows to configure every aspect of email notifications: when an email is sent, who should receive it and what the email says| 2.63		|
|File System SCM Plugin| File System SCM| 2.1		|
|Files Found Trigger| Schedules a build when certain files exist.| 1.5		|
|Filesystem Trigger Plug-in| The plug-in makes it possible to monitor changes of a file or a set of files in a folder.| 0.39		|
|Folders Plugin| This plugin allows users to create "folders" to organize jobs. Users can define custom taxonomies (like by project type, organization type etc). Folders are nestable and you can define views within folders. Maintained by CloudBees, Inc.| 6.6		|
|Gerrit Trigger| This plugin integrates with Gerrit code review.| 2.27.7		|
|Git client plugin| Utility plugin for Git support in Jenkins| 2.7.3		|
|Git plugin| This plugin integrates Git with Jenkins.| 3.9.1		|
|GIT server Plugin| Allows Jenkins to act as a Git server.| 1.7		|
|GitHub API Plugin| This plugin provides GitHub API for other plugins.| 1.92		|
|GitHub Branch Source Plugin| Multibranch projects and organization folders from GitHub. Maintained by CloudBees, Inc.| 2.4.1		|
|GitHub plugin| This plugin integrates GitHub to Jenkins.| 1.29.3		|
|Gradle Plugin| This plugin allows Jenkins to invoke Gradle build scripts directly.| 1.29		|
|Infrastructure plugin for Publish Over X| Send build artifacts somewhere.| 0.22		|
|Jackson 2 API Plugin| This plugin exposes the Jackson 2 JSON APIs to other Jenkins plugins.| 2.8.11.3		|
|Javadoc Plugin| | 1.4		|
|JavaScript GUI Lib: ACE Editor bundle plugin| JavaScript GUI Lib: ACE Editor bundle plugin.| 1.1		|
|JavaScript GUI Lib: Handlebars bundle plugin| JavaScript GUI Lib: Handlebars bundle plugin.| 1.1.1		|
|JavaScript GUI Lib: jQuery bundles (jQuery and jQuery UI) plugin| JavaScript GUI Lib: jQuery bundles (jQuery and jQuery UI) plugin.| 1.2.1		|
|JavaScript GUI Lib: Moment.js bundle plugin| JavaScript GUI Lib: Moment.js bundle plugin.| 1.1.1		|
|JDK Tool Plugin| Allows the JDK tool to be installed via download from Oracle's website.| 1.1		|
|Job Configuration History Plugin| Job history plugin for Jenkins.| 2.18.2		|
|Join plugin| Triggering a job after a group of jobs finish| 1.21		|
|jQuery plugin| This plugin provides an stable version of jQuery Javascript Library| 1.12.4-0		|
|JSch dependency plugin| Jenkins plugin that brings the JSch library as a plugin dependency, and provides an SSHAuthenticatorFactory for using JSch with the ssh-credentials plugin.| 0.1.54.2		|
|JUnit Plugin| Allows JUnit-format test results to be published.| 1.26.1		|
|LDAP Plugin| Adds LDAP authentication to Jenkins| 1.20		|
|Lockable Resources plugin| This plugin allows to define external resources (such as printers, phones, computers) that can be locked by builds. If a build requires an external resource which is already locked, it will wait for the resource to be free.| 2.3		|
|Mailer| This plugin allows you to configure email notifications for build results| 1.21		|
|MapDB API Plugin| This plugin provides a shared dependency on the MapDB library so that other plugins can co-operate when using this library.| 1.0.9.0		|
|Mask Passwords Plugin| This plugin allows masking passwords that may appear in the console.| 2.12.0		|
|Matrix Authorization Strategy Plugin| Offers matrix-based security authorization strategies (global and per-project).| 2.3		|
|Matrix Project Plugin| Multi-configuration (matrix) project type.| 1.13		|
|Maven Integration plugin| This plug-in provides, for better and for worse, a deep integration of Jenkins and Maven: Automatic triggers between projects depending on SNAPSHOTs, automated configuration of various Jenkins publishers (Junit, ...).| 3.1.2		|
|Mercurial plugin| This plugin integrates Mercurial SCM with Jenkins. It includes repository browsing support for hg serve/hgweb, Google Code, Bitbucket, FishEye, KilnHG and RhodeCode. Features include guaranteed clean builds, named branch support, module lists, Mercurial tool installation, and automatic caching.| 2.4		|
|Node and Label parameter plugin| The node and label parameter plugin allows to dynamically select the node on which a job should be executed.| 1.7.2		|
|OWASP Markup Formatter Plugin| Uses the OWASP Java HTML Sanitizer to allow safe-seeming HTML markup to be entered in project descriptions and the like.| 1.5		|
|PAM Authentication plugin| Adds Unix Pluggable Authentication Module (PAM) support to Jenkins| 1.4		|
|Parameterized Trigger plugin| | 2.35.2		|
|Pipeline| A suite of plugins that lets you orchestrate automation, simple or complex. See Pipeline as Code with Jenkins for more details.| 2.6		|
|Pipeline Graph Analysis Plugin| Provides a REST API to access pipeline and pipeline run data.| 1.7		|
|Pipeline: API| Plugin that defines Pipeline API.| 2.30		|
|Pipeline: Basic Steps| Commonly used steps for Pipelines.| 2.11		|
|Pipeline: Build Step| Adds the Pipeline step build to trigger builds of other jobs.| 2.7		|
|Pipeline: Declarative| An opinionated, declarative Pipeline.| 1.3.2		|
|Pipeline: Declarative Agent API| Replaced by Pipeline: Declarative Extension Points API plugin.| 1.1.1		|
|Pipeline: Declarative Extension Points API| APIs for extension points used in Declarative Pipelines.| 1.3.2		|
|Pipeline: GitHub Groovy Libraries| Allows Pipeline Grrovy libraries to be loaded on the fly from GitHub.| 1.0		|
|Pipeline: Groovy| Pipeline execution engine based on continuation passing style transformation of Groovy scripts.| 2.58		|
|Pipeline: Input Step| Adds the Pipeline step input to wait for human input or approval.| 2.8		|
|Pipeline: Job| Defines a new job type for pipelines and provides their generic user interface.| 2.26		|
|Pipeline: Milestone Step| Plugin that provides the milestone step| 1.3.1		|
|Pipeline: Model API| Model API for Declarative Pipeline.| 1.3.2		|
|Pipeline: Multibranch| Enhances Pipeline plugin to handle branches better by automatically grouping builds from different branches.| 2.20		|
|Pipeline: Nodes and Processes| Pipeline steps locking agents and workspaces, and running external processes that may survive a Jenkins restart or slave reconnection.| 2.22		|
|Pipeline: REST API Plugin| Provides a REST API to access pipeline and pipeline run data.| 2.10		|
|Pipeline: SCM Step| Adds a Pipeline step to check out or update working sources from various SCMs (version control).| 2.7		|
|Pipeline: Shared Groovy Libraries| Shared libraries for Pipeline scripts.| 2.12		|
|Pipeline: Stage Step| Adds the Pipeline step stage to delineate portions of a build.| 2.3		|
|Pipeline: Stage Tags Metadata| Library plugin for Pipeline stage tag metadata.| 1.3.2		|
|Pipeline: Stage View Plugin| Pipeline Stage View Plugin.| 2.10		|
|Pipeline: Step API| API for asynchronous build step primitive.| 2.16		|
|Pipeline: Supporting APIs| Common utility implementations to build Pipeline Plugin| 2.21		|
|Plain Credentials Plugin| Allows use of plain strings and files as credentials.| 1.4		|
|Publish Over CIFS| Send build artifacts to a windows share (CIFS/SMB/samba)| 0.11		|
|Rebuilder| This plugin is for rebuilding a job using the same parameters.| 1.29		|
|Resource Disposer Plugin| Dispose resources asynchronously. Utility plugin for resources that require more retries or take a long time to delete.| 0.12		|
|Role-based Authorization Strategy| Enables user authorization using a Role-Based strategy. Roles can be defined globally or for particular jobs or nodes selected by regular expressions.| 2.9.0		|
|Run Condition Plugin| Define conditions for the execution of build steps| 1.2		|
|Safe Restart Plugin| This plugin allows you to restart Jenkins safely.| 0.3		|
|SCM API| This plugin provides a new enhanced API for interacting with SCM systems.| 2.2.8		|
|Script Security| Allows Jenkins administrators to control what in-process scripts can be run by less-privileged users.| 1.46		|
|Selenium Auto Exec Server(AES) plugin| This plugin is for continuous regression test by Selenium Auto Exec Server (AES).| 0.5		|
|Shelve Project Plugin| This plugin lets you shelve projects so that they can easily be resurrected.| 2.1		|
|SSH Agent Plugin| This plugin allows you to provide SSH credentials to builds via a ssh-agent in Jenkins| 1.17		|
|SSH Credentials Plugin| Allows storage of SSH credentials in Jenkins| 1.14		|
|SSH Slaves plugin| Allows to launch agents over SSH, using a Java implementation of the SSH protocol.| 1.28.1		|
|Structs Plugin| Library plugin for DSL plugins that need names for Jenkins objects.| 1.17		|
|Subversion Plug-in| | 2.12.1		|
|ThinBackup| Backups the most important global and job specific configuration files.| 1.9		|
|Timestamper| Adds timestamps to the Console Output| 1.8.10		|
|Token Macro Plugin| This plug-in adds reusable macro expansion capability for other plug-ins to use.| 2.5		|
|Translation Assistance plugin| | 1.16		|
|Workspace Cleanup| This plugin deletes the project workspace when invoked.| 0.35|

*グローバルセキュリティの設定 [#q9c7fc48]
参考URL http://qiita.com/west-hiroaki/items/410a76c96ad57c8cb547 &br;

**「Jenkinsの管理」 を選択 [#y696edcf]
**「グローバルセキュリティの設定」 を選択 [#zc001fbb]
***「セキュリティを有効化」をチェック [#tf2656a2]
***「Jenkinsのユーザーデータベース」をチェック [#gfbc88c9]
***「ユーザーにサインアップを許可」のチェックをはずす [#kfebb71a]
***「Role-Based Strategy」をチェック [#bad2d9e8]
-自動的に「ログイン済みユーザーに許可」のチェックがはずれる
***「保存」を選択 [#f49f8c22]

*Jenkinsにログインするユーザーの作成/削除/変更 [#t9be7017]
**adminでJenkinsにログインする [#f6a63aaf]
**「Jenkinsの管理」 を選択する [#w81bc34b]
**「ユーザーの管理」 を選択する [#l8dd5e00]
-Jenkinsの「ユーザー」一覧 画面が表示される
-admin ユーザーのみが表示されている
**画面左側の 「ユーザー作成」 を選択する [#i8079dbf]
-「ユーザー作成」 画面が表示される
**新規ユーザの情報を入力する [#k9057dc3]
 ユーザー名: john
 パスワード: john
 パスワードの確認: john
 フルネーム: John Smith
 メールアドレス: john@smith
**「ユーザー作成」 ボタンを選択する [#v86316bf]
-Jenkinsの「ユーザー」一覧 画面が表示される
-いま作成した新規ユーザが追加されている

*Jenkinsにログインするユーザーの権限設定 [#d4d87a73]
**権限の作成 [#ne89bb07]
プラグインをインストールした直後は、全てのアクションが可能なadmin権限しか無いので、その他の権限を作成します。&br;
例として、閲覧と既存ジョブが実行可能なoperator権限を作成します。&br;
***「Jenkinsの管理」 を選択 [#b41a709b]
***「Manage and Assign Roles」 を選択 [#tc901deb]
-「Manage and Assign Roles」画面が表示される
***「Manage Roles」 を選択 [#f6f92e27]
***「Global roles」の「Role to add」に「operator」と入力してAddボタンを押す。 [#bb01e4b8]
-一覧にoperatorが追加される
***以下の権限にチェックする。 [#w9053f81]
-「全体」の「Read」
-「ジョブ」の「Build」, 「Cancel」, 「Read」
-「ビュー」の「Read」
***「Save」ボタンを押して権限設定を反映させる。 [#s52dbd7a]

**ユーザーに権限を付与 [#ae52f9ac]
作成したユーザーと権限を紐付けます。&br;
***「Jenkinsの管理」 を選択 [#af44052f]
***「Manage and Assign Roles」 を選択 [#y4d92a96]
-「Manage and Assign Roles」画面が表示される
***「Assign Roles」 を選択 [#b42b9e64]
-「Assign Roles」画面が表示される
***「User/group to add」に「john」と入力して、Addボタンを押す。 [#ob8f7733]
-Global roles に「john」が追加される
***Global rolesの各ユーザーに権限を付与する。 [#ue14772f]
-ユーザー「john」は、operatorにチェック
***「Save」ボタンを押して権限設定を反映させる。 [#fdac7f3f]

*Jenkinsがjob実行でsudoを使用しても、パスワード入力を省略できるようにする [#a80fb27d]
**Jenkinsのjob実行processを調査する [#na04ddeb]
***job作成 confirm_processes [#j0f2c0f6]
 # $HOMEを確認する
 echo "HOME: ${HOME}"
 # current directoryを確認する
 work_dir=`pwd`
 echo "work_dir: ${work_dir}"
 # process idを確認する
 echo "pid of this job : $$"
 pid_of_this_job="$$"
 # 指定したprocess idのprocessの情報を確認する
 ps auxcf | grep -i --color -e "^USER\|${pid_of_this_job}"
***job実行 [#ke6de892]
実行結果 USERは jenkins だ。$HOMEは /var/lib/jenkins だ。
 ビルドします。 ワークスペース: /var/lib/jenkins/workspace/confirm_processes
 [confirm_processes] $ /bin/sh -xe /tmp/hudson1474396497236908427.sh
 + echo HOME: /var/lib/jenkins
 HOME: /var/lib/jenkins
 + pwd
 + work_dir=/var/lib/jenkins/workspace/confirm_processes
 + echo work_dir: /var/lib/jenkins/workspace/confirm_processes
 work_dir: /var/lib/jenkins/workspace/confirm_processes
 + echo pid of this job : 2750
 pid of this job : 2750
 + pid_of_this_job=2750
 + ps auxcf
 + grep -i --color -e ^USER\|2750
 USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
 jenkins   2750  0.0  0.0   4508   708 ?        S    11:16   0:00      \_ sh
 Started calculate disk usage of build
 Finished Calculation of disk usage of build in 0 seconds
 Started calculate disk usage of workspace
 Finished Calculation of disk usage of workspace in 0 seconds
 Notifying upstream projects of job completion
 Finished: SUCCESS
**すべてのコマンドのパスワード入力を省略する [#m5cff3d2]
***visudoを使ってsudoersファイルを編集 [#xba009cf]
 $ sudo visudo
下記を追記する
 jenkins ALL=NOPASSWD: ALL
編集後
  1 #
  2 # This file MUST be edited with the 'visudo' command as root.
  3 #
  4 # Please consider adding local content in /etc/sudoers.d/ instead of
  5 # directly modifying this file.
  6 #
  7 # See the man page for details on how to write a sudoers file.
  8 #
  9 Defaults        env_reset
 10 Defaults        mail_badpass
 11 Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
 12 
 13 # Host alias specification
 14 
 15 # User alias specification
 16 
 17 # Cmnd alias specification
 18 
 19 # User privilege specification
 20 root    ALL=(ALL:ALL) ALL
 21 jenkins ALL=NOPASSWD: ALL
 22 # Members of the admin group may gain root privileges
 23 %admin ALL=(ALL) ALL
 24 
 25 # Allow members of group sudo to execute any command
 26 %sudo   ALL=(ALL:ALL) ALL
 27 
 28 # See sudoers(5) for more information on "#include" directives:
 29 
 30 #includedir /etc/sudoers.d

*システムの設定 [#j0831202]
**Jenkinsの位置 [#zb30b6ec]
|Jenkins URL|http://<jenkins_host>:<port>/jenkins/|

*nodeの設定 slave node側 [#s80f69db]

**nodeのhostname確認 [#g8929c5f]
 $ cat /etc/hostname 
 ubdt12045

**jenkins slave用のuserを作成する [#rdd5b1e5]
user名: jenkins_slave_<hostname> にしよう
 # adduser jenkins_slave_ubdt12045
**sudoグループに追加 [#r7b9cf3d]
 # gpasswd -a jenkins_slave_ubdt12045 sudo
**すべてのコマンドのパスワード入力を省略する ubuntu12.04の場合 [#b76dd289]
 # visudo
-変更前
 %sudo   ALL=(ALL:ALL) ALL
-変更後
 %sudo   ALL=(ALL:ALL) NOPASSWD:ALL

**ssh serverをインストール [#h579fde8]
 sudo apt-get install ssh

**ssh鍵生成しておく [#s42c45e2]
 ~$ ssh-keygen -t rsa
&color(fuchsia){パスフレーズは空を指定すること。};


*nodeの設定 master側 [#i66008d2]
**ssh鍵生成しておく [#n8f527c3]
  $ cd ~
 ~$ ssh-keygen -t rsa
&color(fuchsia){パスフレーズは空を指定すること。};&br;
&color(fuchsia){このとき作成される下記のファイル名を変えてはいけない。};&br;
 .ssh/id_rsa
 .ssh/id_rsa.pub

**Jenkins->認証情報 画面にて 認証情報の追加 予め作成しておく。あとでNode新規作成時に認証情報として指定する [#c2fba7c7]
 http://<jenkins_host>:<port>/jenkins/credentials/store/system/domain/_/newCredentials

|設定項目|設定値|h
|種類|「SSHユーザー名と秘密鍵」を選択する|
|スコープ|グローバル|
|ユーザー名|jenkins_slave_ubdt12045|
|秘密鍵|「Jenkinsマスター上の~/.sshから」を選択する|
|パスフレーズ|空欄にする(ssh-keygen実行時のパスフレーズを指定する)|
|ID|空欄にする(あとで自動的に決定される)|
|説明||

&color(fuchsia){ユーザー名として指定した、jenkins_slave_ubdt12045 という名前の認証情報が作成される。};


**まずはスレーブを作ってみる [#qb49deb6]
-Jenkinsの管理>ノードの管理>新規ノード作成 を選択


**新規ノード作成画面にて [#b3c5f321]
 http://<hostname>:<port>/jenkins/computer/
-ノード名を入力
 ubdt12045
-Permanent Agent ラジオボタンを選択
-OK を選択する


**ノード編集画面にて [#q8efc73b]
 http://<hostname>:<port>/jenkins/computer/createItem
|設定項目| 設定値|h
|ノード名| ubdt12045|
|説明| |
|同時ビルド数| 1|
|リモートFSルート| /home/jenkins_slave_ubdt12045|
|ラベル| ONE_OF_BUILD_PCs ONE_OF_UBUNTU_1404_PCs (例)slave nodeの特性を表す文字列を空白文字で区切る形式)|
|用途| このマシーンを特定ジョブ専用にする|
|起動方法| SSH経由でUnixマシンのスレーブエージェントを起動|
|ホスト| スレーブマシンのipアドレス|
|認証情報| jenkins_slave_ubdt12045 という名前の認証情報 を選択 でとりあえず作成|
|Host Key Verification Strategy| Known hosts file Verification Strategy を選択|
-保存 を選択
まだ接続できない&br;


**jenkins ユーザーになって、一度はslaveへssh接続しておく [#h8ca896b]
  $ sudo su jenkins
  $ cd ~
 ~$ pwd
 /var/lib/jenkins
 ~$ ssh jenkins_slave_ubdt12045@<slave ip address>
-exitして、master側へ戻る。

**jenkins ユーザー のままで、slave側をknown_hostを取り込んでおく [#ee8fa4a1]
-ssh-keygen -R hostname は ~/.ssh/known_hosts から対象ホストのホストキーを削除してくれる。
 ~$ ssh-keygen -R <slave ip address>
-ssh-keyscan は対象ホストのホストキー一覧を取得するコマンド。
-~-Hオプションを付けるとホスト名がハッシュ化される、無しなら昔ながらに生のホスト名で出力される。今時はハッシュ化しとけば良いと思う。
 ~$ ssh-keyscan -H <slave ip address> >> ~/.ssh/known_hosts
 
**master側の公開鍵をslave側へ渡す [#m5b951b8]
 $ scp -P 22 ~/.ssh/id_rsa.pub jenkins_slave_ubdt12045@<slave ip address>:~/.ssh/authorized_keys

&color(fuchsia){master側の公開鍵をslave側のauthorized_keysファイルへ渡す(アペンドする)ことで、接続されるようになります!};&br;


*その他 [#r329a6ca]
**Disable security [#fbeb36f7]
https://wiki.jenkins-ci.org/display/JENKINS/Disable+security
**[Jenkins] ビルドトリガ(定期的に実行)設定についてのまとめ [#gf47f9fb]
http://qiita.com/koara-local/items/79cb9c08e77ac9d94b1d
**master and slave [#g508646d]
[[Dockerコンテナを使って自動ビルドを実行する>http://knowledge.sakura.ad.jp/knowledge/5433/]]&br;
[[Jenkins のスレーブを設定する>http://qiita.com/tototoshi/items/d4e380fd40f0619bbf57]]&br;
[[【ぼっさんのJenkins講座】マスタースレーブを体験しよう – ノード作成編>http://bucket.gift/2017/01/28/bossan-jenkins-2/]]&br;
認証情報の追加 予め作成しておく。あとでNode新規作成時に認証情報として指定する。&br;
 http://<jenkins_host>/jenkins/credentials/store/system/domain/_/newCredentials &br;
|種類|SSHユーザー名と秘密鍵|
|スコープ|グローバル|
|ユーザー名|スレーブ側のユーザー名/home/salve/なら「slave」にする|
|秘密鍵|マスター側jenkinsで ssh-keygen でid_rsaをつくったときの.pubがついてないほうのファイルを指定する。それか直接テキスト指定する。|
|パスフレーズ|マスター側jenkinsで ssh-keygen でid_rsaをつくったときのパスワード。パスワード無しで作成しておく。|
|ID|空欄|
|説明|認証情報を区別するための説明です。認証情報はスレーブ側のユーザー名のぶんだけ別に必要|

[[SSHのknown_hostsをスマートに更新する>http://qiita.com/kawaz/items/20983ec286088a1ae5c7]]

[[開発者(個人)のためのJenkins - Slave編>http://qiita.com/yasuhiroki/items/d618796a1ba1366c4f80]]

[[Jenkins Master-Slave setup and configuration with screenshots>http://scmquest.com/jenkins-master-slave-setup-and-configuration-with-screenshots/]]

*example [#n1d314b9]
**slave側 [#j493b1ca]
-known_hostsファイルは無い。authorized_keysファイルは有る
 jenkins_slave_ubdt12045@ubdt12045:~$ ls -la .ssh/
 合計 20
 drwx------  2 jenkins_slave_ubdt12045 jenkins_slave_ubdt12045 4096  4月  2 22:34 .
 drwxr-xr-x 21 jenkins_slave_ubdt12045 jenkins_slave_ubdt12045 4096  6月 27 20:38 ..
 -rw-r--r--  1 jenkins_slave_ubdt12045 jenkins_slave_ubdt12045  393  4月  2 22:34 authorized_keys
 -rw-------  1 jenkins_slave_ubdt12045 jenkins_slave_ubdt12045 1679  4月  2 22:17 id_rsa
 -rw-r--r--  1 jenkins_slave_ubdt12045 jenkins_slave_ubdt12045  415  4月  2 22:17 id_rsa.pub
-slave側の .ssh/authorized_keys ファイルは master側の /var/lib/jenkins/.ssh/id_rsa.pub と同じ
 jenkins_slave_ubdt12045@ubdt12045:~$ cat .ssh/authorized_keys 
 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD64FmEq7wQtyuZsi2dMK0N9UJz54aa0Xxx4bXonuLx5iucGz8ZSqDK7kWFN6LemqPursnNWArZVH9xV1QpSQVw0ZAbNEIKefn3WehK8FlNDJR+xyMx5p0Tas5qGEqRmUn7LyyTNAPqcKyC1RELPfwUD3zNqLcT+ZWX9RBLSUGXqPS3oonzy3PlrDhKdnd90I8yMoSc8N6DyydGsUiyDMK5lM6f5yZ9/oVCRQOjVKLCynqxT9cnJBEyDz83k6s9ZAeiVVEpyFBEhEbCmN/8uRtoY3+cnraRxTkThmcKeZrXRO3Z+5eJ7TwiFboeGSbYx8K5l3DPpae8SCuXrSED+rbP jenkins@ryu
 jenkins_slave_ubdt12045@ubdt12045:~$

**master側 [#bd9723ed]
-master側の /var/lib/jenkins/.ssh/ には known_hosts が必要
 jenkins_master@ryu:~$ sudo ls -la /var/lib/jenkins/.ssh/
 合計 24
 drwx------  2 jenkins jenkins 4096  4月  1 20:51 .
 drwxr-xr-x 19 jenkins jenkins 4096  6月 27 18:33 ..
 -rw-r--r--  1 jenkins jenkins  392  4月  1 20:51 authorized_keys
 -rw-------  1 jenkins jenkins 1675  4月  1 18:22 id_rsa
 -rw-r--r--  1 jenkins jenkins  393  4月  1 18:22 id_rsa.pub
 -rw-r--r--  1 jenkins jenkins 1914  4月  2 22:20 known_hosts

-master側の /var/lib/jenkins/.ssh/id_rsa.pub は slave側の .ssh/authorized_keys ファイルと同じ
 jenkins_master@ryu:~$ sudo cat /var/lib/jenkins/.ssh/id_rsa.pub
 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD64FmEq7wQtyuZsi2dMK0N9UJz54aa0Xxx4bXonuLx5iucGz8ZSqDK7kWFN6LemqPursnNWArZVH9xV1QpSQVw0ZAbNEIKefn3WehK8FlNDJR+xyMx5p0Tas5qGEqRmUn7LyyTNAPqcKyC1RELPfwUD3zNqLcT+ZWX9RBLSUGXqPS3oonzy3PlrDhKdnd90I8yMoSc8N6DyydGsUiyDMK5lM6f5yZ9/oVCRQOjVKLCynqxT9cnJBEyDz83k6s9ZAeiVVEpyFBEhEbCmN/8uRtoY3+cnraRxTkThmcKeZrXRO3Z+5eJ7TwiFboeGSbYx8K5l3DPpae8SCuXrSED+rbP jenkins@ryu
 jenkins_master@ryu:~$

-master側にて slave側(192.168.3.13)に対して、ssh-keyscan -H 192.168.3.13
 jenkins_master@ryu:~$ ssh-keyscan -H 192.168.3.13
 # 192.168.3.13:22 SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1.10
 ①|1|IbrVQ6AGPcnZjb1bg12TQSDVqbw=|7MD0OSNXgRD5Sbsyccx9ZwHaBSU= ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8OdszqQYHJjuWDmsW3CRO9udWfMF3W21x0Ci5hO4v+Ot0CWr0mi4EcChYTZZfmDGLaxh+g54V+YhIkDt4y4HjQPE3bKqWifV0v26mcGeE+WBYK3+0LAGsGTbY8GDsprSegbo/RpLZhkpXHe+cG9LH4spoJ9R0Ywat31Oum6fgBd4jnJq6GZufwng438J88GebmHcUfUlkQ84z4Whj/MxYQFxnbHgfMeO87dHU1jDYvDYohIVxYw6MCQkgsgJXnmk6WIt5JBD8opVIVovt1DWjeqfcFdNMAObi2iIcpoxOPl+7VNiexe8iR7xPnQXrLk+R4pwc1rlTD10uWbF5Ij9f
 # 192.168.3.13:22 SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1.10
 ②|1|v6AzmrzF/Xxkdv3zojMuzW83A2Y=|+fn4zmtzwOrtkKMF87MYjajmAns= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBDw058kch00nuVjT6h8Ip0k0q97vf1mGMyWIZHHb+hjjlsV17Bjs5LIQxxBE+EucGnXHT96TQkRW3Fxfz5fUUtg=
 # 192.168.3.13:22 SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1.10
 jenkins_master@ryu:~$

-master側にて /var/lib/jenkins/.ssh/known_hosts の中身をみてみると・・・
 sudo cat /var/lib/jenkins/.ssh/known_hosts

 jenkins_master@ryu:~$ sudo cat /var/lib/jenkins/.ssh/known_hosts
 |1|YyORgEx2VGz7TxxHcLaG9eYiBII=|fJbJHillT/v40/rzjaz1oKYqwrs= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBK80ApPuNcCciu/6M8FrCybAnmZVLZML7O7bI9leGH3CsiQzIJawro84Ql6YTC0BQTDU7du/6SOu/3+bv5gOXVM=
 |1|ZPV6QgFXxW8AnKJCo0La7H6nG3c=|v1Cbbk3JeYMvbriv2mHzpIC7l7o= ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3Q4nIWIcCooZJrMMdJEKG8lJ2x2AV4CQyQRipZYsdQ/6uf2FKrJ2chv1lTuh4rf3TJ1m8X0rrwowrznmC1X0pwv12NJ8DRi5gKmGXZW+4jfm6jI64X36FGmKuNHpbQFI4EYRZ2brw3C7n+sEeugLTZsECsnRogaP4rS5H4chgfFZr2Yd6tjW9QByEZa3Ne0Jb/syKrww3jh663TnZqwmBGxBh3XB1JxzXwDkXpOww/vWXw8oMzLNvUayTzM8AxiD/ZZTBMd1CZiZQMb6JqoNHnKwH4NpLO1MLg7E5FoYjqWXkZWrAktoOcyiAnB0qRzc/OueErVI7JDrzSDKhhM57
 |1|24/Q3eYsAEB09s+N19nDEXZpJ4M=|CkEUAZ4+npXleidFkMVVLicZxbw= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBK80ApPuNcCciu/6M8FrCybAnmZVLZML7O7bI9leGH3CsiQzIJawro84Ql6YTC0BQTDU7du/6SOu/3+bv5gOXVM=
 |1|NhJMkyvw9mOOTu5Zrmzjuds/C4s=|fA8CTs3TLkATcUDPc77BlLkL3pw= ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJkVGNw3SmxSIImXko1un7CRX8MlL7jkfoZDaMWUw2PG
 |1|6SsqtrKDZkQ+iKQdOdQQqdsYdcw=|fKZY6xrchYiDh5lQCHPRWi5BH10= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBDw058kch00nuVjT6h8Ip0k0q97vf1mGMyWIZHHb+hjjlsV17Bjs5LIQxxBE+EucGnXHT96TQkRW3Fxfz5fUUtg=
 ②|1|n9Oa9YTgVosAu2rDZMwuQwFf8G0=|5nn8Mkeggp0RdR/56bb/F1n+imY= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBDw058kch00nuVjT6h8Ip0k0q97vf1mGMyWIZHHb+hjjlsV17Bjs5LIQxxBE+EucGnXHT96TQkRW3Fxfz5fUUtg=
 ①|1|c57dMJgWXDemGyJENOwFWdTsnzY=|8bG6E8a6zZrIIe2vYeNk4rFgiHo= ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8OdszqQYHJjuWDmsW3CRO9udWfMF3W21x0Ci5hO4v+Ot0CWr0mi4EcChYTZZfmDGLaxh+g54V+YhIkDt4y4HjQPE3bKqWifV0v26mcGeE+WBYK3+0LAGsGTbY8GDsprSegbo/RpLZhkpXHe+cG9LH4spoJ9R0Ywat31Oum6fgBd4jnJq6GZufwng438J88GebmHcUfUlkQ84z4Whj/MxYQFxnbHgfMeO87dHU1jDYvDYohIVxYw6MCQkgsgJXnmk6WIt5JBD8opVIVovt1DWjeqfcFdNMAObi2iIcpoxOPl+7VNiexe8iR7xPnQXrLk+R4pwc1rlTD10uWbF5Ij9f

-つまりmaster側にて slave側(192.168.3.13)に対して、下記のコマンドをすることでslave側の情報をmaster側へとりこむとよい
 ssh-keyscan -H 192.168.3.13 >> /var/lib/jenkins/.ssh/known_hosts

*example2 JNLPでNode起動 [#n8cb51b3]
http://kazuhito-m.github.io/tech/2016/12/02/jenkins-webstart-node-invisible
**master側 [#b23ad8c1]
***Jenkinsの画面にて、 Jenkinsの管理 -> グローバルセキュリティの設定 画面へ行く [#a7572e5f]
-TCP port for JNLP agents という選択肢が、最初は 無効 になっています。
-これを ランダム を選択するか 固定 でポートを指定して、設定保存をします。
***Jenkinsの画面にて、 Jenkinsの管理 -> ノードの管理 -> 新規ノード作成 で、ノードを作成 [#j6fffb02]
|ノード名|ubdt12045.test|
|リモートFSルート|/home/jenkins_slave|
|ラベル	|ubdt12045.test|
|起動方法|Launch agent via Java Web Start|
設定を保存する。

***以下が表示される [#jd0e3f03]
 Connect agent to Jenkins one of these ways:
  -Launch agent from browser
  -Run from agent command line:
   java -jar slave.jar -jnlpUrl http://<jenkins master hostname>:<port>/jenkins/computer/ubdt12045.test/slave-agent.jnlp -secret <文字列>

**slave側 [#qa35ec7e]
*** javaをインストールしておく [#w2dfa8e1]
*** slave.jar をmasterから取得しておく [#jf637bf5]
 ~$ cd /home/jenkins_slave
 ~$ wget http://<jenkins master hostname>:<port>/jenkins/jnlpJars/slave.jar
***slave.jar を実行 [#vc655b52]
 ~$ java -jar slave.jar -jnlpUrl http://<jenkins master hostname>:<port>/jenkins/computer/ubdt12045.test/slave-agent.jnlp -secret <文字列> &
-これでmasterからnodeとしてみえる

トップ   差分 バックアップ リロード   一覧 単語検索 最終更新   ヘルプ   最終更新のRSS