64位运行模式检查
stage('64-bit-running-mode-check') { steps { echo '====== 64位运行模式 ======' sh ''' if [ ! -d "./report_dir" ]; then mkdir -p ./report_dir; fi /usr/bin/rm -rf ./report_dir/*.html devkit advisor mode-check -i /opt/DevKit/testcase/affinity/precheck/test005 -r html -o ./report_dir mv ./report_dir/mode_check*.html ./report_dir/64-bit-running-mode-check.html ''' } post { always { publishHTML(target: [allowMissing: false, alwaysLinkToLastBuild: false, keepAll : true, reportDir : './report_dir', reportFiles : '64-bit-running-mode-check.html', reportName : '64-bit-running-mode-check Report'] ) } } }
具体参数如所表1示。
参数 |
参数选项 |
参数说明 |
---|---|---|
-i/--input |
package_path |
必选参数。待扫描的源码文件夹路径,若存在多个扫描路径需使用英文逗号分割。 例如:/home/test1、 /home/test2。 |
-o/--output |
output_path |
可选参数。报告存放路径,报告默认存放在当前执行路径下,名称默认为“特性名称_时间戳”。 |
--set-timeout |
time |
可选参数。任务超时时间,默认无超时时间,任务将持续执行直到结束。 |
-l/--log-level |
0,1,2,3 |
可选参数。设置日志等级,日志等级分类有0(DEBUG)、1(INFO)、2(WARNING)、3(ERROR),默认为1(INFO)。 |
-r/--report-type |
all,json,html,csv |
可选参数。扫描报告的格式,默认为all,即默认生成json、html、csv三种报告。 |
父主题: Jenkins流水线