BuildHiveã«ç´æ¥ããã·ã¥ã§ããããã«ãªãã¾ãã
BuildHiveã§ã¯ãªãªã¼ã¹å½åãããã«ãªã¯ã¨ã¹ããèªåãã«ãããæ©è½ãã¤ãã¦ãã¾ãããä»æ¥ãããã«å ãã¦éçºè
ãBuildHiveã«ç´æ¥å¤æ´ãgit pushããä»çµã¿ã追å ãã¾ããããã®ä»çµã¿ã¯ãæ¤è¨¼æ¸ã¿ãã¼ã¸ãã¨ããã¾ãã
ãã«ãªã¯ã¨ã¹ãã¯ä¸»ã«å¤é¨ã®éçºè
ãå¤æ´ãææ¡ããããã³ããã¿ãä»ã®ã³ããã¿ã«å¯¾ãã¦ã³ã¼ãã¬ãã¥ã¼ãä¾é ¼ããæãªã©ã«ä½¿ãããä»çµã¿ã§ãããªã®ã§ãé常ãéçºè
ã¯èªåã®å¤æ´ããããããã«ãªã¯ã¨ã¹ãã«ãããç´æ¥ãªãã¸ããªã¸ããã·ã¥ãã¦ããã®ã§ã¯ãªããã¨æãã¾ãããã ããããã ã¨åé¡ã®ããã³ãããããªãã¸ããªã«æ··å
¥ãã¦ãã«ããå£ãããã¨ãããã¨ãèµ·ãããã¾ããæ¤è¨¼æ¸ã¿ãã¼ã¸ããããã¨ã§ããããé²ããã¨ãã§ãã¾ãããã®æ©è½ã¯æ¬¡ã®ããã«åä½ãã¾ãã
ã¾ããGitHubä¸ã§buildhiveã¦ã¼ã¶ã¼ããªãã¸ããªã®ã³ã©ãã¬ã¼ã¿ã¨ãã¦è¿½å ãã¦ãã ãããããã«ãã£ã¦ãBuildHiveããªãã¸ããªã«å¤æ´ãããã·ã¥ã§ããããã«ãªãã¾ããBuildHiveããããèªåã§ããã®ã¯ã¾ãããã¨æã£ãã®ã§ãç¾æç¹ã§ã¯ããã¯æåã§ãããªã£ã¦ãããå¿
è¦ãããã¾ãã
次ã«ãBuildHiveã«ãã°ã¤ã³ãã¦ãã¸ã§ãã®ãã¼ã¸ã表示ãã¦ãã ããï¼ä¾ï¼ãç»é¢å·¦ãããGit Repository for Validated Mergeããé¸ã³ã¾ããã³ãã¼ãã¿ã³ãæ¼ãã¦ããgit remote addãã³ãã³ããã¯ãªãããã¼ãã¸ã³ãã¼ãããã®ã³ãã³ããã¯ã¼ã¯ã¹ãã¼ã¹ã§å®è¡ãã¦ãã ãããããã§BuildHiveããªã¢ã¼ããªãã¸ããªã¨ãã¦è¿½å ããã¾ãã
æºåã¯ããã§åºæ¥ä¸ãããªã®ã§ããã¤ããã£ã¦ããããã«ã³ã¼ããç·¨éããã³ããããä½ã£ã¦ãã ãããããã·ã¥ããç¨æãæ´ã£ããããã¤ãã®ããã«ãoriginãã«ããã·ã¥ããã®ã§ã¯ãªãããjenkinsãã«ããã·ã¥ãã¾ããããä¸ã®ä¾ã§ã¯masterãã©ã³ããããã·ã¥ãã¦ãã¾ãããä»ã®ãã©ã³ãã§ä½æ¥ãã¦ããããã®ååã«ç½®ãæãã¦ãã ããã
$ git push jenkins master
BuildHiveã¯å¤æ´ãåãåãã¨ãGitHubä¸ã§ã®ç¾å¨ã®ãã®ãã©ã³ãã®å
端ã¨ãã¼ã¸ããä¸ã§ããã«ãã¨ãã¹ããè¡ãã¾ãããããã¼ã¸ã®çµæããã¹ãã«åæ ¼ããå ´åã¯ããã®ãã¼ã¸ã®çµæãGitHubã¸ããã·ã¥ããã¾ãã
ããéæªããå¤æ´ã«ä¸åãããã°ããã¹ã失æãéç¥ããã¾ãããã®æç¹ã§ããããã ã£ãä»äºãä¸åº¦ä¸æãã¦ãä¸åã®ãã£ãå¤æ´ãæä¿®æ£ãã¾ããããã©ã®å¤æ´ãBuildHiveã«ããã·ã¥ãããè¦ãã¦ããã®ã¯é¢åãªã®ã§ãBuildHiveã¯ä¸åã®ãã£ãå¤æ´ããã§ãã¯ã¢ã¦ãããããããã«ã¿ã°ãå
¬éãã¦ããã¾ããã³ãã³ããã³ãããã¦ã¿ã°ãåå¾ãã¾ãããã
$ git stash
$ git fetch -n ssh://[email protected]/kohsuke2/sandbox-ant tag changes/45
$ git checkout changes/45
$ ⦠make edits ...
ä¸åã®ãã£ãå¤æ´ã«æ°ããªã³ãããã追å ãã¦åé¡ãä¿®æ£ãã¦ãããã§ãããrebaseãcommit --amendãªã©ã使ã£ã¦ç ´å£çãªå¤æ´ããããªã£ã¦ãæ§ãã¾ãããä¸åãä¿®æ£ãããããããæ¹ãã¦BuildHiveã«éã£ã¦ãã¹ããã¾ããããBuildHiveã«ä¿®æ£ãéã£ãããåã«è¡ãªã£ã¦ããä½æ¥ã«æ»ãã¾ãããã
$ git push jenkins HEAD:master
$ git checkout master
$ git stash pop
⦠resume the work you were doing ...
ããå¤æ´ã®ä¸åãçºè¦ãããæã«ããªããæ¢ã«å¸°å®
ãã¦ããããä»ã®ååãããã£ã¦ãã®ä½æ¥ãè¡ããã¨ãã§ãã¾ãã
éçºè
ã®æéã¯è²´éã§ããéçºãã·ã³ããã¹ãã®å®è¡ãçµããã®ãå¾
ã¤ã®ã§ã¯ãªãããã£ãã¨å¤æ´ãBuildHiveã«éã£ã¦ãã¾ã£ã¦ã次ã®ä½æ¥ã«ã¨ããããã¾ãããï¼ãã®æ©è½ãå©ç¨ããã°ãéçºè
ã¯ãã¹ãã®å®è¡ããã¼ã«ã«ã§è¡ãå¿
è¦ã¯ãªããªãã¾ããç·¨éâã³ãããâããã·ã¥ã ããç¹°ãè¿ãã°ããã®ã§ãã
ãªãããã®æ©è½ã¯Jenkins Enterprise by CloudBeesã«ã¤ãã¦ããæ©è½ãBuildHiveä¸ã«å±éãããã®ã§ããJenkins Enterprise by CloudBeesã使ãã°ãã®ãããªä½æ¥ããã¼ãä»»æã®Gitãªãã¸ããªã«å¯¾ãã¦å©ç¨ã§ãã¾ãã