Jenkinsãã©ã°ã¤ã³æ¢è¨ª - JobConfigHistory
ã¯ããã«
ã誰ããã¸ã§ãã®è¨å®ã誤ã£ã¦å¤æ´ãã¦ãã¾ã£ããããæ¨æ¥ã¾ã§åé¡ãªãåãã¦ããèªåãã«ãã失æãã¦ãã¾ããåé¡ã®ç¹å®ã«æéãããã£ã¦ãã¾ã£ãããªãã¦ãã¨ã«ãªãã¨é¢åã§ãã
ãã®ãããªå ´åããéå»ã®è¨å®ãã¨ãç¾å¨ã®è¨å®ãã簡便ã«æ¯è¼ã§ããããã«ãªã£ã¦ããã¨ãåé¡ç¹ãçæéã§ç¹å®ã§ãã¦å©ããã¾ãã
ããã§ããã®è¨äºã§ã¯ããã®ãããªç¶æ³ã®æ¹åçã®ä¸æ段ã¨ãã¦JobConfigHistoryãã©ã°ã¤ã³ãç´¹ä»ãããã¨æãã¾ãã
ãªãããã®ãã©ã°ã¤ã³ã¯ç°¡æ½ã«è¿°ã¹ãã¨ã
- ãã¤
- 誰ã
- ä½ã®è¨å®ã
- ã©ã®ããã«å¤æ´ããã®ã
ã調æ»ããããã®æ©è½ãæä¾ãã¾ãã
ã¤ã³ã¹ãã¼ã«
JobConfigHistory Pluginã®å称ã¨é¢é£URLã¯æ¬¡ã®ã¨ããã§ãã
ãã©ã°ã¤ã³å | Wiki URL | ãã¦ã³ãã¼ã URL | GitHub URL |
---|---|---|---|
JobConfigHistory Plugin | http://wiki.jenkins-ci.org/display/JENKINS/JobConfigHistory+Plugin | http://updates.jenkins-ci.org/download/plugins/jobConfigHistory/ | https://github.com/jenkinsci/jobConfigHistory-plugin |
- プラグインのインストール/アップデート/無効化ãåç §ãã¦ããã©ã°ã¤ã³ãã¤ã³ã¹ãã¼ã«ãã¦ãã ããã
- ä»ã®ãã©ã°ã¤ã³ã¨ã®ä¾åé¢ä¿ã¯ããã¾ããã
- ãã©ã°ã¤ã³ä»¥å¤ã«ã¤ã³ã¹ãã¼ã«ãããã®ãããã¾ããã
- ã¸ã§ãè¨å®ã®å¤æ´å±¥æ´ã管çããã ãã§ããã°ãã¤ã³ã¹ãã¼ã«å¾ã«ããã©ã°ã¤ã³ã®ããã©ã«ãè¨å®ããå¤æ´ããå¿ è¦ã¯ããã¾ããã
æ©è½æ¦è¦ (ããã©ã«ãç¶æ )
JobConfigHistoryãã©ã°ã¤ã³ã®æ©è½æ¦è¦ã¯æ¬¡ã®ã¨ããã§ãã
- ã¸ã§ãã®è¨å®ãä¿åããã¨ãä¿ååã®è¨å®ãã¸ã§ãã®config-historyãã£ã¬ã¯ããªå ã«æ ¼ç´ããã¾ãã
- ã¸ã§ãã®è¨å®ãä½åº¦ãä¿åããå¾ã«ããã®ã¸ã§ãã®[Job Config History]ã¡ãã¥ã¼ãæ¼ãã¨ããã®ã¸ã§ãã®ã¿ã®å¤æ´å±¥æ´ãä¸è¦§ããã¾ãã
- è¤æ°ã®ã¸ã§ãã®è¨å®ãããããä½åº¦ãå¤æ´ããå¾ã«ãJenkinsã®ãããç»é¢ã®[Job Config History]ã¡ãã¥ã¼ãæ¼ãã¨ãè¤æ°ã®ã¸ã§ãã®å¤æ´å±¥æ´ãã¾ã¨ãã¦ä¸è¦§ããã¾ãã
- å¤æ´å±¥æ´å ã®[View as XML]ã¾ãã¯[RAW]ãæ¼ãã¨ããã®æç¹ã®è¨å®ãã¡ã¤ã«ã®å 容ã表示ããã¾ãã
- æ¯è¼å ã¨æ¯è¼å ã®ãã¡ã¤ã«ãããããã[File A]ã¨[File B]ã§é¸æãã¦ã[Show Diffs]ãã¿ã³ãæ¼ãã¨ãDiffå½¢å¼ã®å·®åæ å ±ã表示ããã¾ãã
- ã·ã¹ãã ã®è¨å®ãã¡ã¤ã«ã¯ãããã©ã«ãç¶æ ã®ã¾ã¾ã§ã¯ä¿åããã¾ããã
æ©è½è©³ç´°
JobConfigHistoryãã©ã°ã¤ã³ã®æ©è½è©³ç´°ã¯æ¬¡ã®ã¨ããã§ãã
- ã¸ã§ãã®è¨å®ãã¡ã¤ã«ããæå®ããæ°ã ãä¿åãã¦ãããã¨ãã§ãã¾ãã
- ã·ã¹ãã ã®è¨å®ãã¡ã¤ã«ããæå®ããæ°ã ãä¿åãã¦ãããã¨ãã§ãã¾ãã
- è¨å®ãå¤æ´ãããã¨ãå¤æ´è ã¨å¤æ´æå»ãå¤æ´å¾ã®ãã¡ã¤ã«ã¨ã¨ãã«ä¿åããã¾ãã
- ããæç¹ã®è¨å®ãã¡ã¤ã«ã®å 容ã確èª/åå¾ãããã¨ãã§ãã¾ãã
- åãè¨å®ãã¡ã¤ã«ã®ä»»æã®2ã¤ã®æç¹ã®å·®åæ å ±ãè¦ããã¨ãã§ãã¾ãã
- ã¸ã§ãã®è¨å®ãã¡ã¤ã«ã¯ãã¸ã§ãã®ãconfig-historyããã£ã¬ã¯ããªå ã«ä¿åããã¾ãã
- ã·ã¹ãã ã®è¨å®ãã¡ã¤ã«ã¯ãã$JENKINS_HOME/config-historyããã£ã¬ã¯ããªå ã«ä¿åããã¾ãã
- ã·ã¹ãã ã®è¨å®ãã¡ã¤ã«ãä¿åããå ´åã¯ãã·ã¹ãã è¨å®ã§ãSave system configuration changesããé¸æããå¿ è¦ãããã¾ãã
- ä¾ãã°ãã¸ã§ãã®è¨å®ãã¡ã¤ã«ã¯ãã¸ã§ãã®è¨å®ç»é¢ãéãã¦[ä¿å]ãã¿ã³ãæ¼ããã ãã§ãæ°ããªå±¥æ´ã¨ãã¦ä¿åããã¾ãããã®ãããªéè¤ããå±¥æ´ã®ä¿åãé¿ããå ´åã¯ãã·ã¹ãã è¨å®ã§ãDo not save duplicate historyããé¸æããå¿ è¦ãããã¾ãã*1
- ããã©ã«ãç¶æ ã§ã¯ãè¨å®ãã¡ã¤ã«ã®ä¿åæ°ãå¶éããã¦ãã¾ãããä¿åæ°ãå¶éããå ´åã¯ãã·ã¹ãã è¨å®ã§ãSave system configuration changesãã®å¤ãå ¥åããå¿ è¦ãããã¾ãã
- è¨å®ãã¡ã¤ã«ã®æ ¼ç´å ãå¤æ´ãããã¨ãã§ãã¾ãããã®å ´åã¯ãã·ã¹ãã è¨å®ã§ãRoot history folderãã«ç¸å¯¾ãã¹ã¾ãã¯çµ¶å¯¾ãã¹ã§æ ¼ç´å ã®ã«ã¼ããã£ã¬ã¯ããªãå ¥åãã¦ãã ãããç¸å¯¾ãã¹ã§æå®ããå ´åã¯ãã$JENKINS_HOME/ç¸å¯¾ãã¹ããæ ¼ç´å ã®ãã£ã¬ã¯ããªã«ãªãã¾ãã絶対ãã¹ã§æå®ããå ´åã¯ãã絶対ãã¹ããã®ãã®ãæ ¼ç´å ã®ãã£ã¬ã¯ããªã«ãªãã¾ãããããã®ã¨ããã·ã¹ãã ã®è¨å®ã¯ãconfig-historyããã£ã¬ã¯ããªãã¸ã§ãã®è¨å®ã¯ãjobs/ã¸ã§ãåããã£ã¬ã¯ããªã«æ ¼ç´ããã¾ãã
- ã·ã¹ãã ã®è¨å®ãã¡ã¤ã«ã®ãã¡ãä¿åãã¦ããå¿ è¦ããªããã®ã¯ãã·ã¹ãã è¨å®ã®ãSystem configuration exclude file patternãã«ãã¡ã¤ã«åã®æ£è¦è¡¨ç¾ãã¿ã¼ã³ãè¨è¿°ãã¦é¤å¤ãã¾ãã
å©ç¨ã®ãã¤ã³ã
- éè¤ããå¤æ´å±¥æ´ãä¿åããã¦ãã¾ãã¨åé¡è¿½è·¡ããã«ãããªãã¾ãã®ã§ãã·ã¹ãã è¨å®ã§ãDo not save duplicate historyããé¸æãã¦ãããæ¹ãããã§ãããã*2
- 好ã¿ã«ããã¾ãããã·ã¹ãã è¨å®ã§ãSave system configuration changesããé¸æãã¦ãã·ã¹ãã ã®è¨å®ãã¡ã¤ã«ãå¤æ´å±¥æ´ã®è¿½è·¡å¯¾è±¡ã«ããæ¹ãããã§ãããããã®å ´åãã·ã¹ãã ãé¢é£ããè¨å®ãã¡ã¤ã«ãèªåçã«å¤æ´ããå¯è½æ§ãããã®ã§ããDo not save duplicate historyããé¸æãã¦ãããã¨ãã奨ããã¾ãã
- ã¦ã¼ã¶ç®¡çãæå¹ã«ãã¦ãè¨å®ãã¡ã¤ã«ã®å¤æ´è ãç¹å®ã§ããããã«ããã¹ãã§ãã(ã¦ã¼ã¶ç®¡çã«ã¤ãã¦ã¯ãã操作権限をユーザ/グループ/ロール別に制御するããåç §ãã¦ãã ãã)
- ããã©ã«ãç¶æ ã§ã¯ãã¸ã§ããåé¤ãããã¨å¤æ´å±¥æ´ãåé¤ããã¾ããåé¤ããã¸ã§ãã®è¨å®ãã¡ã¤ã«ãæ®ãã¦ããããå ´åã¯ãã·ã¹ãã è¨å®ã§ãRoot history folderããå¤æ´ãã¦ãã ããã
ãããã«
ãã£ã¨ããããªç®¡çãããæ¹ã¯ãæ§æ管çãã¼ã«ã¨é£æºãã¦è¨å®ãä¿åããæ¹ããããã¨æãã¾ããããããã©ã¡ããä¸æ¹ã®æ段ã ãã使ç¨ããããããä½µç¨ããæ¹ã簡便ãã¨å³å¯ããå
¼ãåããããã®ã§è¯ãã¨æãã¾ãã
ã¾ãããã®ãã©ã°ã¤ã³ã使ç¨ããã¨Jenkinsåç¬ã§è¨å®ãã¡ã¤ã«ã®å¤æ´å±¥æ´ã管çã§ããã®ã§ãæ§æ管çãã¼ã«ã¨ã®é£æºæ¹æ³ã«ã¤ãã¦æ©ãå¿
è¦ããªããªãã¾ãã