如何从maven pom.xml获取jenkins的报告以进行依赖性检查

时间:2017-11-02 10:57:23

标签: maven security jenkins owasp

我通过添加dependency-check插件修改了pom.xml。我还在jenkins中添加插件,我应该在Jenkins文件中添加一个舞台吗? 詹金斯档案:

 stage('Dependency Check') {
                dependencyCheckAnalyzer datadir: 'dependency-check-data', isFailOnErrorDisabled: true, hintsFile: '',
                    includeCsvReports: false, includeHtmlReports: false, includeJsonReports: false,
                    isAutoupdateDisabled: false, outdir: '', scanpath: '', skipOnScmChange: false,
                    skipOnUpstreamChange: false, suppressionFile: '', zipExtensions: ''
                dependencyCheckPublisher canComputeNew: false, defaultEncoding: '', healthy: '', pattern: '', unHealthy: ''
                archiveArtifacts allowEmptyArchive: true, artifacts: '**/dependency-check-report.xml', onlyIfSuccessful: true
            }

pom.xml:

 <plugin>
            <groupId>org.owasp</groupId>
            <artifactId>dependency-check-maven</artifactId>
            <version>3.0.1</version>
            <executions>
                <execution>
                    <goals>
                        <goal>check</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>

请任何帮助 谢谢

0 个答案:

没有答案