You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A build of zulip-plugin failed with error
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (default-compile) on project humbug: Compilation failure
[ERROR] /var/lib/jenkins/zulip-plugin/src/main/java/hudson/plugins/humbug/HumbugNotifier.java:[104,38] cannot find symbol
[ERROR] symbol: method getTestResultAction()
[ERROR] location: variable build of type hudson.model.Run
and changed src/main/java/hudson/plugins/humbug/HumbugNotifier.java by adding the import
import hudson.tasks.test.AbstractTestResultAction;
and changing
int failCount = build.getTestResultAction().getFailCount();
to
int failCount = build.getAction(AbstractTestResultAction.class).getFailCount();
The text was updated successfully, but these errors were encountered:
Thanks for reporting. This is a result of falsely merged PR that was made against the old version of the plugin that did not support pipelines (used AbstractBuild instead of Run in the notification processing).
It will befixed today.
A build of zulip-plugin failed with error
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (default-compile) on project humbug: Compilation failure
[ERROR] /var/lib/jenkins/zulip-plugin/src/main/java/hudson/plugins/humbug/HumbugNotifier.java:[104,38] cannot find symbol
[ERROR] symbol: method getTestResultAction()
[ERROR] location: variable build of type hudson.model.Run
According to https://javadoc.jenkins-ci.org/hudson/model/AbstractBuild.html the method is deprecated:
@deprecated
public Action getTestResultAction()
Deprecated. Use Actionable.getAction(Class) on AbstractTestResultAction.
To fix this I've added the following to pom.xml:
org.jenkins-ci.plugins
junit
1.7
and changed src/main/java/hudson/plugins/humbug/HumbugNotifier.java by adding the import
import hudson.tasks.test.AbstractTestResultAction;
and changing
int failCount = build.getTestResultAction().getFailCount();
to
int failCount = build.getAction(AbstractTestResultAction.class).getFailCount();
The text was updated successfully, but these errors were encountered: