Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
ããã¯ä½ï¼ Jenkinsã«éç解æããã¹ãçµæãã¾ã¨ãã¦ã¬ãã¼ããã¦ãããçºã®Mavenè¨å®ãè¨ãããã®ã â»ãJenkinsèªä½ã¸ã®è¨å®ã¯å²æãã¾ãã ã¬ãã¼ãã¤ã¡ã¼ã¸ Jenkinsã®ç»é¢ããéç解æã®çµæããã¹ãã®çµæãªã©ãä¸æã§ããæ§ãªæã ãã¼ã¸ã§ã³æ å ± maven 3.3.3 jenkins 1.634 centos 6.5 (Open Logic 6.5) jenkinsã«åããããã¬ãã¼ãã®å 容 findbugs checkstyle jUnitã®ãã¹ãçµæ ã«ãã¬ãã¸æ¸¬å® PMD(Javaã½ã¼ã¹ã³ã¼ã解æã®çºã®éçãªã«ã¼ã«ã»ãã) javadocçæ å¿ è¦ãªJenkinsã®ãã©ã°ã¤ã³ â» æ¨æºã§ã¤ã³ã¹ãã¼ã«ããã¦ãããã©ã°ã¤ã³ãå«ã¿ã¾ã â» ä¾åé¢ä¿ã§ã¤ã³ã¹ãã¼ã«ããããã©ã°ã¤ã³ã¯å¯¾è±¡ã¨ãã¦ãã¾ããã Checkstyle Plug-in Cobertura Plugi
ããã«ã¡ã¯ã ä»æ¥ã¯ããã©ã¤ãã¼ãã§æè¿è©¦ãã¦ããéçºç°å¢æ´åã®ä¸ç°ã¨ãã¦ã Jenkinsã使ã£ãèªåãã¹ãã»ãã«ãã«ã¤ãã¦æ¸ãããã¨æãã¾ãã What is CI? Continuous Integrationï¼ç¶ç¶çã¤ã³ãã°ã¬ã¼ã·ã§ã³ï¼ 1度éããããã¯æ°åéãã§ã¯ãªããç¶ç¶çã«å°ã¾ãã«ãã«ããå®è¡ãã¦ãããã©ã¯ãã£ã¹ (http://www.atmarkit.co.jp/ait/articles/1309/04/news022.html) Merits ããããä¸è¨(http://www.atmarkit.co.jp/ait/articles/1309/04/news022.html)ã®å¼ç¨ã§ã¯ããã¾ããã»ã»ã»ã æ³å®å¤ã®ç¶æ³ãèµ·ãã£ãã¨ãã«ãç´ æ©ãæ¤ç¥ã§ãã ä»è¾¼ãã§ãã¾ã£ããã°ãå³åº§ã«æ¤ç¥ã§ãã éçºè ã®ç°å¢ä¾åã®åé¡ãæ¤ç¥ãããããªã ãç§ã®ç°å¢ã§ã¯åããã©ã»ã»ã»ã ãã«ã
ä¼ç¤¾ã§åè¨éçºãã¦ãã¦ãgitã使ã£ãéçºããã¼ãèãããã¨ã«ãªã£ãã ãã¢ã·ã§ã¢ã«éçºããé¡ããã¦ãã¦ããã¢ã·ã§ã¢ããã®åãå ¥ãã¿ã¤ãã³ã°ãä½åããããããããã«ãããã¦ãã©ã³ããããã¦ããã ã©ãããããã¼ã§é²ãã¦ãããã¨ãä¸çªæå¾ã«ãã£ã¦ã¿ã¦æã£ããã¨ãæ¸ããã ã©ãããããã¼ã§ãã£ã¦ããã ãªãã¸ããªã®æ§æ ä¸è¨ã¢ã¸ã¥ã¼ã«ãç¨æããã parent core entity common web batch tools ãã¢ã·ã§ã¢ã«ã¦éçºããã¢ã¸ã¥ã¼ã«ã¯ãcommonãããwebãããbatchãã§ã ã¢ã¼ãã«ã¦éçºããã¢ã¸ã¥ã¼ã«ã¯ãparentãããcoreãããentityãã ãã©ã³ã ãã©ã³ãã¯ãããªæãã§åãã¦ããã ã¡ãªã¿ã«ãã½ã¼ã¹ç®¡çã¯gitBucketã使ã£ãã masterãã©ã³ããâ¦ããªãªã¼ã¹å¯è½ãªç¶æ ã®è³æºã®ã¿ã管çãããçµåãã¹ãå®æ½æã¯ãæ¬ãã©ã³ãããè³æºã
ä½ãé©ãã»ã©ã«ï¼æ¥æ¬èªã®ï¼æ å ±ãå°ãªãããã¼ãããã®ã¨ããã°ããããï¼ãªã®ã§ãã¡ãã£ã¨æ¸ãã¦ã¿ã¾ãã æ¦è¦ ãªãã¸ããªç®¡çãã¼ã«ã¨ã¯ ãªãã¸ããªç®¡çãã¼ã«ã¨ã¯ãMavenãªã©ã®ãã«ãçµæã®çæç©ï¼ã¢ã¼ãã£ãã¡ã¯ãï¼ãçªã£è¾¼ãããã®ãªãã¸ããªï¼ã¤ã³ãã¦ã¹ãªãã¸ããªï¼ãç°¡åã«ç«ã¦ããã¨ãã§ãããã¼ã«ã§ããã¾ãã¶ã£ã¡ããã¤ã³ãã¦ã¹ãªãã¸ããªã¯WebDAVã§ãæ§ããªãã®ã§ãApacheã¨ã使ãã¨ç°¡åã«æ§ç¯ãããã¨ã¯ã§ãã¾ãããã ããã¼ã«ã¨ãã¦ä½ããã¦ãã以ä¸ãåç´ãªWebDAVã«ã¯ãªãæ©è½ãåãã¦ããããã§ãã¦ã ããã¤ããããã¨ã ã»ã³ãã©ã«ãªãã¸ããªãã¯ããã¨ããããªã¢ã¼ããªãã¸ããªã®ãã£ãã·ã¥ ãªãã¸ããªã®åå²ã»åå²ããããªãã¸ããªã®ä»®æ³çãªçµ±ä¸ ãããã¤ããã¦ããã¢ã¼ãã£ãã¡ã¯ãã®æ¤ç´¢ Jarã®å é¨ãåç §å¯è½ ã»ãã¥ãªãã£ããã¼ã«ã«å¿ãã¦ç´°ããè¨å®å¯è½ ã®ãããªãç´°ãããªããã便å©ãªæ©è½ã
Jenkins ã ãã§ãªã Sonar ã使ç¨ããå ´åã®ã¾ã¨ã¾ã£ãè¨äºããªãã¨ãªããã®å£°ãæ£è¦ãããã®ã§åèªèº«ã®åå¿é²ãè¾¼ãã¦ã»ããã¢ããæ¹æ³ãç°¡åã«ã¾ã¨ãã¦ã¿ã¾ããï¼ä¾ã«ãã£ã¦æ¸ãæ®´ãã¨ãªãã§ãããï¼ Maven+Jenkins+Sonar ã®ç°å¢æ§ç¯æé ã«ã¤ãã¦ã¯ãè¥å¹²å¤ããã¼ã¸ã§ã³ã®ä¾ã§ãããMaven,Jenkins,Sonarã®å°å ¥æé ã«ã¾ã¨ã¾ã£ã¦ããã®ã§ããã®ã¨ã³ããªã§ã¯ Android ã¢ããªéçºåãã®ãã¬ãã¸ãå å³ãã¦ãã®è¾ºãå«ãã¦ã¡ãã£ã¨è¨è¼ãã¦ãããã¨æãã¾ãã ã£ã¨ãã®åã« Sonar ã¦ä½ï¼ã£ã¦æ¹ã¯ ã³ã¼ãæ¢ç¥æ©ãSonarãã§ããã¸ã§ã¯ãã®æ·±æµ·ãæ¢ãï¼ ãè¦ã¦ã¿ã¦ä¸ãããæ£ç´ãªè©±ããã¹ãçµæãå«ãã³ã¼ãå質ã«ã¤ãã¦ã¯ Jenkins ã ãã§ã¯å½¹ä¸è¶³æãå¦ããªãã®ã§ Sonar ã®å°å ¥ãå¼·ããå§ããã¾ããå° Sonar ã®å ¬å¼ãµã¤ãã§ã¯ã©ã®ãããªæ å ±ãææ¡ã§ããã®ã
ãã¾ãã¨ãããè足ã§ãã Sonatype Nexus ã®å°å ¥ Maven ãªãã¸ããªç®¡çã½ããã® Sonatype Nexus ã®å°å ¥æé ã§ããMaven 㧠CI ãããªã connection refused ãåºããªãããã«ãå°å ¥ãã¦ããã®ãç¾å®çãã¨æãã¾ããé¡ä¼¼ãããã¯ãã¨ã㦠Artifactory ãªã©ããã¤ãããã¾ããåãããã¯ãã®æ¯è¼ã«ã¤ãã¦ã¯ãMaven Repository Manager Feature Matrix ãã覧ä¸ããã Tomcat ãåæ¢ããã¾ãã $ ${HOME}/apache-tomcat-7.0.42/bin/shutdown.sh nexus.war (å·çæç¹ã®ææ°ã¯ 2.6.1 ã§ã) ããã¦ã³ãã¼ãã㦠Tomcat ã® webapps ã¸ç§»åã¾ãã¯ã³ãã¼ãã¾ãã $ cd $home $ mv nexus-2.6.1-02.war
æ¬ãã¼ã¸ã§ã¯ãJavaã½ããã¦ã§ã¢ç®¡çãã¼ã«ç¾¤ã§ãããMavenã»Jenkinsã»Sonarã®å°å ¥æé ãè¨è¿°ãã¾ããæ¬ãã¼ã¸ã®ã´ã¼ã«ã¯ãåãä¸ãã3ã¤ã®ãã¼ã«ãçµã¿åããããã¨ã«ãããè¤æ°äººã§éçºãã¦ããã½ããã¦ã§ã¢ã®å質ããªã¢ã«ã¿ã¤ã ã§ç¢ºèªã§ããç°å¢ãå¾ããã¨ã§ãã Sonarãåä½ãããã«ã¯ã1GByteãè¶ ããã¡ã¢ãªå®¹éãå¿ è¦ã«ãªãã¾ãã â»Mavenã§ãªãAntã使ç¨ããå ´åã¯ãAnt,Jenkins,Sonarã®å°å ¥æé ãåç §ãã¦ãã ããã ç°å¢ OS : CentOS 5.5 Maven :ã3.0.2 Jenkins : 1.396 Sonar : 2.5 Tomcat : 7.0.8 MySQL : 5.1.54 APãµã¼ãã¨DBãµã¼ãã¯ãããã©ã¼ãã³ã¹ã¨ç®¡çã®ããããã®è¦³ç¹ãããJenkinsã¨Sonarå èµããã¦ããç©ã使ç¨ãããTomcatã¨MySQLã使ç¨ãã¾ãã
ãåææ¡ä»¶ã [ç°å¢] OS/ããã«ã¦ã§ã¢ CentOS 6.4 GlassFish Server Open Source Edition 3.1.2.2 Jenkins 1.522 Jenkins JDK 1.7.0_25 Maven 3.0.5 Jenkinsãã©ã°ã¤ã³ Jenkins Subversion Plug-in 1.50 Maven Integration plugin 1.523 Checkstyle Plug-in 3.35 ãæ¦è¦ã Jenkinsä¸ã§Checkstyleãå®è¡ãã¾ãã 以åãç·´ç¿ç¨ã«ä½ã£ãããã¸ã§ã¯ãã® è¨å®ãå¤ãã¦Jenkinsã«ã®ãã¦ã¾ãã https://github.com/gloryof/shelf ãpom.xmlã [propertiesã®è¨å®] ã¾ãã¯pom.xmlã®propertiesã®è¨å®ã checkstyle.config.l
ãåææ¡ä»¶ã [ç°å¢] OS/ããã«ã¦ã§ã¢ CentOS 6.4 GlassFish Server Open Source Edition 3.1.2.2 Jenkins 1.522 Jenkins JDK 1.7.0_25 Maven 3.0.5 Jenkinsãã©ã°ã¤ã³ Jenkins JaCoCo plugin 1.0.12 Jenkins Subversion Plug-in 1.50 Maven Integration plugin 1.522 ãåèãµã¤ãã Jacoco+NetBeansã§ã«ãã¬ãã¸ãåã£ã¦Jenkinsã§è¨é² - ããã ã®ã¯ã¦ãª Java7以éã«ãããMavenã§ã®ã«ãã¬ãã¸ã¬ãã¼ã - ç¾å ´ã®ããã®ã½ããã¦ã§ã¢éçºããã»ã¹ - ããã®ãæ¥è¨ ãæ¦è¦ã Java7ã§ä½æããã½ã¼ã¹ãJenkinsä¸ã§ã«ãã¬ãã¸ãåãã¾ãã 以åãç·´ç¿ç¨ã«ä½ã£ãããã¸ã§ã¯ãã®
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}