标签:ane 版本 代码 回调接口 adl 插件 com 代码质量 安全测试
注意点:
注意点:
查出的结果如下:
此部分目前暂时没有实现
node { stage(‘Build‘) { echo ‘Building....‘ checkout([$class: ‘GitSCM‘, branches: [[name: ‘*/master‘]], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: ‘global_credentials‘, url: ‘http://***/Test-myown.git‘]]]) sh "mvn -DskipTests clean install package sonar:sonar" def mvnHome = tool ‘M3‘ def gitDefault = tool ‘gitDefault‘ def jdkver = tool ‘jdk8‘ def mysonar = tool ‘SonarQube Scanner 6.7‘ echo "---${mvnHome}/bin/mvn---" echo "---${gitDefault}---" echo "---${jdkver}---" echo "---${mysonar}---" } stage(‘SonarQube analysis‘) { echo "starting codeAnalyze with SonarQube......" withSonarQubeEnv { sh ‘mvn -DskipTests clean install package org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar‘ } } stage(‘Quality Gate‘) { timeout(3) { def qg = waitForQualityGate() echo "---before qg:${qg.status}---" if (qg.status != ‘OK‘) { error "未通过Sonarqube的代码质量阈检查,请及时修改!failure: ${qg.status}" } echo "---after qg:${qg.status}---" } } stage(‘Dependency Check‘) { dependencyCheckAnalyzer datadir: ‘‘, hintsFile: ‘‘, includeCsvReports: false, includeHtmlReports: true, includeJsonReports: false, includeVulnReports: true, isAutoupdateDisabled: false, outdir: ‘‘, scanpath: ‘‘, skipOnScmChange: false, skipOnUpstreamChange: false, suppressionFile: ‘‘, zipExtensions: ‘‘ dependencyCheckPublisher canComputeNew: false, defaultEncoding: ‘‘, failedTotalHigh: ‘0‘, healthy: ‘‘, pattern: ‘‘, unHealthy: ‘‘ dependencyCheckUpdateOnly() // dependencyTrackPublisher()--shibai失败,youchucuo有出错tishi } }
node { stage(‘SCM‘) { git credentialsId: ‘global_credentials‘, url: ‘http://***/Test-myown.git‘ } stage(‘SonarQube analysis‘) { echo "starting codeAnalyze with SonarQube......" withSonarQubeEnv { sh ‘mvn -DskipTests clean install package org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar‘ } } stage(‘Quality Gate‘) { timeout(3) { def qg = waitForQualityGate() echo "---before qg:${qg.status}---" if (qg.status != ‘OK‘) { error "未通过Sonarqube的代码质量阈检查,请及时修改!failure: ${qg.status}" } echo "---after qg:${qg.status}---" } } }
参考: https://testerhome.com/topics/11326
标签:ane 版本 代码 回调接口 adl 插件 com 代码质量 安全测试
原文地址:https://www.cnblogs.com/Ronaldo-HD/p/9920853.html