ãååãJenkinsのインストールã«ã¤ãã¦æ¸ãã¾ãããä»åã¯ãJenkinsã§ãã«ãã»ãã¤ãã©ã¤ã³ãæ§ç¯ãã話ã§ãã
ãã«ãã»ãã¤ãã©ã¤ã³ã¨ã¯ï¼
ããã«ãã»ãã¤ãã©ã¤ã³ã¨ã¯ããã«ãã®ããã»ã¹ãåå²ãã¦é çªã«å®è¡ãã¦ãããã¨ã§ããä¾ãã°ãã«ãã®æµãã¨ãã¦ãã³ãããâéç解æâã³ã³ãã¤ã«âãã¸ãã¯å±¤ã®ã¦ããããã¹ãâUI層ã®ã¦ããããã¹ãçããã£ãã¨ãã¾ããããã1ã¤ã®ã¸ã§ãã¨ãã¦ç»é²ããã®ã§ã¯ãªãã1ã¤1ã¤ã®ã¸ã§ãã¨ãã¦å®è¡ããæåããå ´åã®ã¿æ¬¡ã®ã¹ãããã«é²ããããã«ãã¾ããããããã«ããã¤ãã©ã¤ã³ã§ãã
ãã¡ãªããã¨ãã¦ã¯ãã©ã®å·¥ç¨ã§å¤±æãã¦ããã®ã解ãããããã¨ã第ä¸ã«ããã¾ããã¾ãJenkinsã®ç¹æ§ãæ´»ããã¦ãç¹å®ã®ã¸ã§ãã並åã§åããããåºæ¥ãã®ã§å¹çåãåºæ¥ã¾ããã¾ããæ´ã«æ¤è¨¼æ¸ã¿ãã¼ã¸ãªã©ãé«åº¦ãªæ´»ç¨ã«ãã¤ãªããã¾ãã
Jenkinsã§ãã«ãã»ãã¤ãã©ã¤ã³ã®æ§ç¯
ãå ã Jenkinsã§ã¯ãã¸ã§ãã®åå¾é¢ä¿ãç°¡åã«ä½ãã¾ãããã«ãã»ããªã¬ã§"ä»ããã¸ã§ã¯ãã®ãã«ãå¾ã«ãã«ã"ãæå®ããã ãã§ãã
ãããããããã ãã§ã¯åå¾é¢ä¿ã解ãã«ããã§ãããè¦è¦çã«æ¥½ãããªãã§ããããã§ãJenkin Build Pipeline ãã©ã°ã¤ã³ã®ç»å ´ã§ãããã®ãã©ã°ã¤ã³ã¯ãåºæ¬çã«ã¯æ¢åã®Jenkinsã®ã¸ã§ãã®åå¾é¢ä¿ãè¦è¦çã«è¡¨ç¾ããã ãã§ããå¯ä½ç¨ããªãããã¤æ ¼æ®µã«ä½¿ãããããªãã¾ãã
ãã«ãã»ãã¤ãã©ã¤ã³ã®è¨å®
ãJenkin Build Pipeline ãã©ã°ã¤ã³ãã¤ã³ã¹ãã¼ã«ããã¨ãããã·ã¥ãã¼ããããã¤ãã©ã¤ã³ãä½ãã¾ãã"Build Pipeline View"ã"ãªã¹ããã¥ã¼"ãä½ãã¾ãããã£ãããªã®ã§è¦è¦çãªBuild Pipeline Viewãè¯ãã§ããã
ãä½æå¾ã«ãSelect Initial Jobã§æåã«å®è¡ããã¸ã§ããé¸ã³ã¾ããåºæ¬çã«ã¯ããã ãã§ããInital Jobã§é¸ãã ã¸ã§ãã®ä¾åé¢ä¿ã«å¾ããã¤ãã©ã¤ã³ãå½¢æããã¾ããå®è¡ããã¨å¤±æããªãéãé çªã«ã¸ã§ããå®è¡ããã¦ããã¾ãã
æåã®ããªã¬ã¼è¨å®
ãã¾ãBuild Pipeline ãã©ã°ã¤ã³ã¯ãæåã®ããªã¬ã¼ãè¨å®ã§ãã¾ãããã«ããã¦ãããã¦ãã¨ã¯ãèªåã§ã©ãã©ãé²ãã§ãåé¡ããã¾ãããã§ãä¾ãã°æ¤è¨¼ç°å¢ãæ¬çªç°å¢ã¸ã®ãªãªã¼ã¹ã®ã¸ã§ããªã©ã¯ãèªåã§è¡ããããå°ãå ´åãå¤ãã§ãããã®å ´åã¯ãæåã§ã®ããªã¬ã¼ãè¨å®ãã¾ãã
ããã©ã°ã¤ã³ãã¤ã³ã¹ãã¼ã«ããã¨ããã«ãå¾ã®å¦çã«Build Pipeline DownStream Project Namesãè¨å®ã§ãã¾ãããããæåã§å®è¡ããå¾ç¶ã¸ã§ãã§ãã
ã¾ã¨ã
ããã«ããã¤ãã©ã¤ã³ã»ãã©ã°ã¤ã³1ã¤å ¥ããã ãã§ãéåã¨ä½¿ãããããªãã¾ããããã£ã±ãè¦è¦åã¯æ¥½ããã¦è¯ãã§ããããã¾ãããã¾ãJenkinsã«è©³ãããªã人ã§ããç´æçã«å½¹å²ãç解åºæ¥ãã®ãè¯ãã¨æãã¾ãã次ã¯ãSeleniumã»Chefã¨ã®é£æºããæ¤è¨¼ãã¼ã¸ã®è©±ãæ¸ãããã¨æãã¾ãã
See Also:
Amazon Linux AMIにRuby用にJenkinsをインストールする
JenkinsとSelenium WebDriverでUI層のテストも自動化&永続化する
åç
§ï¼
Jenkinsでビルド・パイプラインを作る | Ryuzee.com