The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.
For a list of other such plugins, see the Pipeline Steps Reference page.
step([$class: 'FireLineBuilder'])
: Execute FireLinefireLineTarget
csp
If you select "Yes", this plugin will set the following content of CSP to allow access to HTML with JS or CSS.
sandbox allow-scripts; default-src *; style-src * http://* 'unsafe-inline' 'unsafe-eval'; script-src 'self' http://* 'unsafe-inline' 'unsafe-eval'
Warning:
There is a security risk if you select "Yes".
boolean
blockBuild
If there are some questions of block level detected from your project,FireLine plugin will make build fail when you select "Yes".
boolean
configuration
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<fireline>
<args>
<!-- 序号对应的规则种类,用加号+相连
1:代码规范类
2:内存类
3:日志类
4:安全类
5:空指针
6:多线程
-->
<scanTypes>1+2+4+5+6</scanTypes>
<!--以上写法过滤了日志类的所有规则-->
<!--以下为过滤掉指定的单条规则,请加QQ群298228528获取规则名称-->
<filterRules>
<!--<filterRule ruleName="LogOnOffRule" />
<filterRule ruleName="LogBlockRule" />
<filterRule ruleName="LogAssignmentRule" />-->
</filterRules>
<!--过滤掉你不想检查的文件(注意:重复代码检查不支持过滤)-->
<filterFiles>
<!--过滤单个文件-->
<!--<filterFile Name="R.java"/>-->
<!--过滤整个文件夹-->
<!--<filterFile Name="/facebook/"/>-->
</filterFiles>
</args>
</fireline>
以上配置文件去掉了日志类的规则,所以火线扫描过程中就不会执行日志类规则的检查。
String
reportPath
String
reportFileName
String
buildWithParameter
可通过配置使用build with parameter插件,在项目构建时灵活使用火线扫描。
例如:在项目配置中设置参数化构建参数。配置boolean类型参数fireline。
则在此输入框中填写${fireline}即可
String
jdk
JDK to be used for this FireLine analysis.
Tips:
JDK1.7 or 1.8 is compatible with FireLine.
String
jvm
合理设置JVM参数可以有效提高扫描效率,建议JVM最低配置如下:
"-Xms1g -Xmx1g -XX:MaxPermSize=512m"
String
Please submit your feedback about this page through this quick form.
Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?
See existing feedback here.