1
8
我在詹金斯身上也遇到了同样的问题,上面的回答在一定程度上帮助了我。这就是我现在拥有的(并在我的系统上工作)。 如果您的系统如下所示:
这是我的build.xml中的内容
诀窍是不要使用${basedir}并丢失目录的尾部斜杠。 我希望它能有所帮助 |
2
5
也可以将这些排除项放在build/phpcs.xml中。 排除js/facebook-dir中所有文件的示例,js/jquery*的通配符匹配和指定的文件名。
|
3
3
使用
根据您的版本php_codesniffer,您必须传递要忽略的目录的完整路径(旧版本),或者传递构建目录的相对路径以使忽略生效(从php_codesiniffer 1.3.6版本开始): 摘录自 Changelog 以下为:
|
4
1
感谢您的投入。我最后就这样解决了
作品 |
Stat.Enthus · 在bash脚本中设置aws cli配置文件 2 年前 |
Pritish · 如何定制Jenkins pipeline舞台视图? 2 年前 |
mslz · 从groovy活动引用参数中的json列表返回子列表 2 年前 |
asaf · 如果Jenkins管道花费的时间太少,则强制构建阶段失败 2 年前 |
Frak · 非常棒。按中嵌套映射的键对映射数组排序 6 年前 |
Yash · 我怎么知道詹金斯管道的哪个阶段失败了 6 年前 |