Wei-Chiu Chuang created AMBARI-26455:
----------------------------------------
Summary: Precommit job does not report the actual error to GitHub
Key: AMBARI-26455
URL: https://issues.apache.org/jira/browse/AMBARI-26455
Project: Ambari
Issue Type: Bug
Components: build
Affects Versions: 3.1.0
Reporter: Wei-Chiu Chuang
https://ci-hadoop.apache.org/job/Ambari/job/Ambari-PreCommit-GitHub-PR/job/PR-3981/1/console
{noformat}
Change id: 3981, title: [Ambari 26209] Upgrade vulnerable commons-collections
3.2.x, url: https://github.com/apache/ambari/pull/3981
[Pipeline] echo
JIRA ID:
[Pipeline] echo
======failed to add link to jira
Ooops, no jira id found :(
=============================
{noformat}
But Jenkins does not report the error back to GitHub.
{noformat}
Also: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId:
1487b621-b1c8-4622-9b92-bad45734757c
groovy.lang.MissingPropertyException: No such property: pullRequest for class:
groovy.lang.Binding
at groovy.lang.Binding.getVariable(Binding.java:63)
at PluginClassLoader for
script-security//org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:285)
at PluginClassLoader for
script-security//org.kohsuke.groovy.sandbox.impl.Checker$7.call(Checker.java:375)
at PluginClassLoader for
script-security//org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:379)
at
org.kohsuke.groovy.sandbox.impl.Checker$checkedGetProperty$1.callStatic(Unknown
Source)
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:55)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:197)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:233)
at WorkflowScript.publishPRLink(WorkflowScript:171)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
{noformat}
Looks like this line is the culprit:
https://github.com/apache/ambari/blob/bffc22a7e3108d86474c6aa9665cb824d0b1d8eb/Jenkinsfile#L171
Broken by AMBARI-26097 cc [~jialiang]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]