GitBook ã§æ¸ããææ¸ã® Redpen ã®è¦åã Jenkins Warnings Plugin ã§å¯è¦åãã
ç°å¢
- Jenkins 2.8
- Jenkins Warnings Plug-in 4.56
- Redpen 1.5.5
ã¢ããã¼ã·ã§ã³
æè¿ãæè¡ããã¥ã¡ã³ãã GitBook ã使ã£ã¦ Markdown ã§æ¸ãã¦ããã
GitBook ã¯å½ç¶ Git ãªãã¸ããªã使ãã¦ãWebHook ã¾ã§ä½¿ããã
ãããªã£ã¦ãã㨠Jenkins 㧠CI ããã¦ãæ ¡æ£çµæãã°ã©ãã«ããããªã£ã¦ããã®ã§ã
Jenkins ã¨åã Java ã§æ¸ããã Redpen ã使ã£ã¦ã¿ã¦ããã
Jenkins Warnings Plugin ã®è¨å®
ã¾ã㯠Jenkins Warnings Plugin ã«ãã¼ãµã¼ã追å ããã
è¨å®ã¯ä»¥ä¸ã®ããã«ããã
- åå ⦠Redpen
- ãªã³ã¯å ⦠Redpen è¦å
- æ¨ç§»ã¬ãã¼ãå ⦠Redpen è¦å
- æ£è¦è¡¨ç¾
(.+):(\d+?): ValidationError\[(.+)\], (.+) at line: (.+)
import hudson.plugins.warnings.parser.Warning import hudson.plugins.analysis.util.model.Priority String fileName = matcher.group(1) String lineNumber = matcher.group(2) String message = matcher.group(4) return new Warning(fileName, Integer.parseInt(lineNumber), "Dynamic Parser", "Warning", message, Priority.NORMAL);
ã¸ã§ãã®è¨å®
- ãã½ã¼ã¹ã³ã¼ã管çãã® Git 㧠GitBook ã®ãªãã¸ããªè¨å®ããã
- ããã«ãã®å®è¡ã㧠Redpen ãå®è¡ãã (åºå㯠plain)
- ããã«ãå¾ã®å¦çãã§ãã³ã³ãã¤ã©ã®è¦åã®éè¨ãã§å ã»ã©å®ç¾©ãã Redpen ãã¼ãµã¼ãæå®ãã
GitBook å´ã®è¨å®
- WebHook 㧠Jenkins ã®ã¸ã§ããå®è¡ãã
å®è¡ã¤ã¡ã¼ã¸
ãããªæãã
å½ç¶ãè¦åã®ãªã³ã¯ãã¯ãªãã¯ããã¨è©²å½è¡ããã¤ã©ã¤ããã¦ããããããããè¦åæ°ã®æ¨ç§»ãã°ã©ãã«ãã¦ãããããããã
ã¾ã¨ã
GitBook + Redpen + Jenkins Warnings Pluginin ããæ軽ã§æé«ï¼
2016-08-03 追è¨
Markdown ãã¡ã¤ã«ããµããã£ã¬ã¯ããªã«ããã¨ãã¤ã©ã¤ãããã¾ãå¹ããªãã¿ããã
Redpen ããã£ã¬ã¯ããªã®æ
å ±ãæ¨ã¦ã¡ãã£ã¦ãã®ã§ã©ããããããªãæãã