Jenkins Warning Plugin + Ant + Javadoc ã§è¦åãéè¨
ç°å¢
- Windows Server 2012 R2
- Java 8 u45
- Jenkins 1.609
- Ant 1.9.4
- Jenkins Warning Plugin 4.47
ã¨ããç°å¢ã§ Javadoc ãåºãã¨ã©ã¼/è¦åã Jenkins Warning Plugin ã§éè¨ãããã¨ãããçµæ§å¤§å¤ã ã£ãã®ã§ã¡ã¢ã
è¨å®
ããªã»ããããã¦ãããã¼ãµã¼ã 㨠Ant + Javadoc + æ¥æ¬èªç°å¢ ã§è§£æã§ãããã®ããªãã£ãã®ã§ãèªåã§ãã¼ãµã¼ãå®ç¾©ãã¦ããã
ååï¼JavaDoc Tool(Ant)
ãªã³ã¯åï¼Javadoc è¦å
æ¨ç§»ã¬ãã¼ãåï¼Javadoc è¦å
æ£è¦è¡¨ç¾ï¼
\s*\[javadoc\] (.+):(\d+?): (ã¨ã©ã¼|è¦å): (.+)\s*
ãããã³ã° ã¹ã¯ãªããï¼
import hudson.plugins.warnings.parser.Warning import hudson.plugins.analysis.util.model.Priority String fileName = matcher.group(1) String lineNumber = matcher.group(2) String level = matcher.group(3) String message = matcher.group(4) Priority priority = (level == "ã¨ã©ã¼" ? Priority.HIGH : Priority.NORMAL) return new Warning(fileName, Integer.parseInt(lineNumber), "Dynamic Parser", "Warning", message, priority);
ãã°ã¡ãã»ã¼ã¸ï¼(空ç½)
ãã¨ã¯ä¸ã§å®ç¾©ãããã¼ãµã¼ããã«ãå¾ã®å¦çã§å¼ã³åºãã°ããããªæãã§ã°ã©ããåºãã
è¦åãå¤ãï¼ã¡ãã£ã¨ä½è¨ã£ã¦ãããããããªãã§ããâ¦ã
ã¾ã¨ã
Jenkins Warning Plugin æé«ï¼