java.lang.UnsupportedOperationException: no known implementation of interface jenkins.tasks.SimpleBuildStep is named Publisher

Viewed 5024

I am running Jenkins on GKE, migrating from VM. I am getting this error in one of the gradlew test builds. Anyone has any idea on how to approach it?

Error when executing always post condition:
java.lang.IllegalArgumentException: Could not instantiate {delegate={$class=Publisher, reportFilenamePattern=**/testng-results.xml}} for org.jenkinsci.plugins.workflow.steps.CoreStep: java.lang.UnsupportedOperationException: no known implementation of interface jenkins.tasks.SimpleBuildStep is named Publisher


Caused by: java.lang.UnsupportedOperationException: no known implementation of interface jenkins.tasks.SimpleBuildStep is named Publisher
2 Answers

I'm not sure what was solution to this, but most of issues I had were solved by installing plugins in newer version, and all their dependent plugins

The issue was due to the lack of the TestNG plugin. The install/update of the plugin must have been the solution. Here you can see a case with the same output solved by installing TestNG plugin.

Related