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.

360 FireLine Plugin

step([$class: 'FireLineBuilder']): Execute FireLine

  • fireLineTarget
      Nested Object
    • 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".

      • Type: boolean
    • blockBuild

      If there are some questions of block level detected from your project,FireLine plugin will make build fail when you select "Yes".

      • Type: boolean
    • configuration
      配置文件,可以通过该配置控制FireLine扫描规则、过滤文件等功能。 访问火线(FireLine)官网查看更多详情。 配置内容的写法如下:
                
      
                           <?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>
      
                
          

      以上配置文件去掉了日志类的规则,所以火线扫描过程中就不会执行日志类规则的检查。

      • Type: String
    • reportPath
      FireLine火线扫描后产生的结果报告路径。 也可以使用jenkins环境变量,例如${WORKSPACE}。 默认扫描报告文件名为testReport.html。
      • Type: String
    • reportFileName
      FireLine火线扫描后产生的结果报告文件名。 默认扫描报告文件名为testReport.html。 也可以使用jenkins环境变量,例如testReport_${buildID}.html
      • Type: String
    • buildWithParameter

      可通过配置使用build with parameter插件,在项目构建时灵活使用火线扫描。

      例如:在项目配置中设置参数化构建参数。配置boolean类型参数fireline。

      则在此输入框中填写${fireline}即可

      • Type: String
    • jdk

      JDK to be used for this FireLine analysis.

      Tips:
           JDK1.7 or 1.8 is compatible with FireLine.

      • Type: String
    • jvm

      合理设置JVM参数可以有效提高扫描效率,建议JVM最低配置如下:

      "-Xms1g -Xmx1g -XX:MaxPermSize=512m"

      • Type: String

Was this page helpful?

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.