Jenkins-如果缺少Javadoc,则构建失败 [英] Jenkins - Making a Build Fail if Javadoc is Missing

查看:86
本文介绍了Jenkins-如果缺少Javadoc,则构建失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Jenkins进行持续的源代码集成,并且如果缺少javadoc标记或注释,我无法弄清楚如何使构建失败.我需要怎么做才能做到这一点?

I'm using Jenkins for continuous source integration, and I can't figure out how to make a build fail if there are missing javadoc tags or comments. What do I need to do to make this happen?

推荐答案

您需要

You need Jenkins Text Finder plugin. It will allow you to search the build log, or any other set of files under workspace for a Regular Expression, and then set the build result accordingly

这篇关于Jenkins-如果缺少Javadoc,则构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆