-
Story
-
Resolution: Fixed
-
Minor
-
None
Is there a way to add a groovy postbuild step in a declarative pipeline template for creating jobs?
The documentation at https://jenkins.io/doc/pipeline/steps/ doesn't have any references to this plugin so I assume the answer is no, but just wondered if there might be another workaround?
[JENKINS-43992] pipeline syntax for groovy-postbuild-plugin
Assignee | Original: Stefan Wolf [ wolfs ] | New: Edward Quick [ equick ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Component/s | New: badge-plugin [ 23455 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Yeah this is a bit confusing. I'd like the ability to do like manager.addShortText(textToDisplay) from a Pipeline Groovy script. It's a bit confusing because this plugin seems to be doing two things, really – its name is deceptive. It provides a way to run Groovy scripts at the end of a build, but it also provides some helpful UI widgets.
This is how the plugin gets its manager – with the right imports you might be able to get it to work in a Pipeline script:
See WorkflowManager.java