Jenkinsãããå¼±ç¹ãå æããã®å·»
以åãå·å£ãããããJobã®è¨å®ã¨å®è¡ç°å¢ãJENKINS_HOMEã«è¨å®ãããããã«ãJenkinsï¼ãHudsonï¼ã®ããã¯ã¢ãããé¢åãªãã ãçãªè©±ãèãããã§ããã
å
·ä½çã«è¨ãã¨ãJENKINS_HOMEã丸ãã¨ããã¯ã¢ããããã¨ãããä¸ã«Jobã®ã¯ã¼ã¯ã¹ãã¼ã¹ãããã«ãçµæãããå«ã¾ããã®ã§æ¬è³ªçã«Jenkinsã®ããã¯ã¢ããã¨ã¯ç°ãªãã¢ããåã£ã¡ããããããã¯ã¢ãããµã¤ãºããã«ããªãã£ã¦è©±ï¼éå»ã®ãã«ãçµæã¯å¾®å¦ã ãã©ãJobã®ã¯ã¼ã¯ã¹ãã¼ã¹ãªãã¦SCMããååå¾ããã°æ¶ãã¦ãã¾ã£ã¦ãå°ããªãã§ããã
ä½ã§ãããªãã¨æãåºãããã¨ããã¨ãä¹
ãã¶ãã«Jenkinsã®ã·ã¹ãã è¨å®çºãã¦ããããããªè¨å®é
ç®ã¿ã¤ãããããã
ãããââãé«åº¦ãªè¨å®ãæ¼ãââ
ã»ã»ãããã«ãã¿ã㨠workspace 㨠builds ã¨JENKINS_HOMEã¯ç¨éãéããããããããé©ããé ç½®ããã¦ããããçãªäºãæ¸ãã¦ãããï¼workspace ã¯æ®çºãã¦ãè¯ããbuilds ã¯ãµã¤ãºãã«ããªããããããªãã®ãã£ã¹ã¯ã¸ãJENKINS_HOMEã¯å¤§äºã«ããã£ã¦æãï¼
è¨å®å¯è½ãªç°å¢å¤æ°ã¯ä»¥ä¸ã®ï¼ã¤
- ${JENKINS_HOME} â Jenkins home directory
- ${ITEM_ROOTDIR} â Root directory of a job for which the workspace is allocated.
- ${ITEM_FULLNAME} â '/'-separated job name, like "foo/bar".
ã¤ã¾ããããã©ã«ãã ã¨${JENKINS_HOME}ããå§ã¾ã${ITEM_ROOTDIR}ãè¨å®ããã¦ãããã©ã${ITEM_FULLNAME}使ãã°ãä»ã®ãã£ã¬ã¯ããªã« workspace ã builds ãè¨å®ã§ããããã ï¼ã£ã¦ãå®é試ãããã§ãããã ãã©ãã
ã¡ãªã¿ã«ãä¿®æ£ã®ãã£ããã«ãªã£ãã§ããããã±ããã¯ããã¤ã ã¨æãã
ãã㧠@ikikko ããã調ã¹ã¦ããããã ãã©ãv1.421 ããå
¥ã£ã¦ããã ã¨ãããã
ã