简体   繁体   English

詹金斯错误-errorWhenCurrentBuildBuildIsWorseOrEqualTo.groovy

[英]Jenkins Error - errorWhenCurrentBuildResultIsWorseOrEqualTo.groovy

I am trying to setup a Continuous Delivery pipeline using Jenkins for the address-manager application built using Java and S4/HANA Extension SDK. 我正在尝试使用Jenkins为使用Java和S4 / HANA扩展SDK构建的地址管理器应用程序设置一个持续交付管道。 But upon starting Jenkins and starting the app for pipeline build on localhost, I see that the job which I schedule as a multi branch fails. 但是在启动Jenkins并启动用于在localhost上进行管道构建的应用程序时,我看到我计划为多分支的作业失败了。

The errors I get via stage view looks like this: Jenkins Error 我通过舞台视图获得的错误如下所示: Jenkins Error

And some error messages that popped up are: 弹出的一些错误消息是:

13:31:37  [PMD] Plug-in Result: Failed - <a href="pmdResult">3 
warnings</a> of <a href="pmdResult/HIGH">priority High</a> exceed 
the threshold of 0 by 3
[Pipeline] echo
13:31:37  --- BEGIN LIBRARY STEP: 
errorWhenCurrentBuildResultIsWorseOrEqualTo.groovy
[Pipeline] error
[Pipeline] echo
13:31:37  ----------------------------------------------------------
13:31:37  --- ERROR OCCURRED IN LIBRARY STEP: 
errorWhenCurrentBuildResultIsWorseOrEqualTo
13:31:37  ----------------------------------------------------------
13:31:37  
13:31:37  FOLLOWING PARAMETERS WERE AVAILABLE TO THIS STEP:
13:31:37  ***
13:31:37  [script:Script1@23932457, errorStatus:FAILURE, 
errorHandler:buildFailureReason$_closure1@5966ff12, 
errorHandlerParameter:PMD, errorMessage:Please examine the PMD 
reports.]
13:31:37  ***
13:31:37  
13:31:37  ERROR WAS:
13:31:37  ***
13:31:37  hudson.AbortException: Build was ABORTED and marked as 
FAILURE. Please examine the PMD reports.
13:31:37  ***

I am not sure what I am doing wrong. 我不确定自己在做什么错。 Upon running docker ps , I do see two containers that are active. 在运行docker ps ,我确实看到了两个处于活动状态的容器。

docker ps
CONTAINER ID        IMAGE                         COMMAND                  
CREATED             STATUS              PORTS                                       
NAMES
5c8d5ebde36c        sonatype/nexus3:3.13.0        "sh -c 
${SONATYPE_DI…"   39 minutes ago      Up 39 minutes       8081/tcp                                    
s4sdk-nexus
39b22d39b7ed        s4sdk/jenkins-master:latest   "/sbin/tini -- 
/usr/…"   44 hours ago        Up 38 minutes       8443/tcp, 
50000/tcp, 0.0.0.0:80->8080/tcp   s4sdk-jenkins-master

Any pointers to proceed forward would be appreciated. 任何前进的指针将不胜感激。 Thank you. 谢谢。

pmd is a tool for analysis of code, which is part of the pipeline. pmd是用于代码分析的工具,它是管道的一部分。 It has discovered flaws in your application, which is why the pipeline fails. 它发现了您的应用程序中的缺陷,这就是管道失败的原因。 I believe the message is quite clear about that. 我相信这个信息很清楚。

13:31:37 [PMD] Plug-in Result: Failed - 3 warnings of priority High exceed the threshold of 0 by 3 13:31:37 [PMD]插件结果:失败-3个优先级高的警告超出了阈值0 x 3

Please examine the PMD reports. 请检查PMD报告。

To resolve this, look into the results of pmd and see what it complains about. 要解决此问题,请查看pmd的结果并查看其抱怨之处。 Once those issues are fixed, that stage will be green and the rest of the pipeline will run. 解决这些问题后,该阶段将变为绿色,其余管道将运行。

You'll find the pmd report when you click on the failed build, in the sidebar on the left. 当您单击失败的版本时,您会在左侧的侧边栏中找到pmd报告。

This is one of the good things about using a CI/CD pipeline. 这是使用CI / CD管道的好处之一。 It discovers flaws in your code, which would not have been discovered otherwise. 它会发现您代码中的缺陷,否则这些缺陷将不会被发现。 To learn more about the qualities checked by this pipeline, please have a look at this document: https://github.com/SAP/cloud-s4-sdk-pipeline/blob/master/doc/pipeline/cloud-qualities.md 要了解有关此管道检查的质量的更多信息,请查看以下文档: https : //github.com/SAP/cloud-s4-sdk-pipeline/blob/master/doc/pipeline/cloud-qualities.md

Kind regards and a merry Christmas 亲切的问候和圣诞快乐

Florian 弗洛里安

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM