如何在Jenkins管道中使用GroovyPostbuildSummaryAction
?
我尝试过:
import org.jvnet.hudson.plugins.groovypostbuild.*;
但是它不起作用:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: 81: unable to resolve class GroovyPostbuildSummaryAction
@ line 81, column 34.
GroovyPostbuildSummaryAction action = new GroovyPostbuildSummaryAction("star-gold.png");
我想使用管道中的共享库并使用以下代码段进行测试:https://gist.github.com/hayderimran7/7a49d0fa484f7561120b4190f8f3a888#file-retro-add-badges-groovy