--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANDLextj0bbX4zwToHLYCFU4EuYMUQYd0r_6NxWNVszKToDVbw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/DB6814A1-964E-40B2-B048-595D967EA10F%40gmail.com.
Am 21.06.2021 um 00:52 schrieb long song <songl...@gmail.com>:Here is how I use the plugin the pipeline scriptsteps {
script {
def myResult = MyPlugin Parameter1: value1, Parameter2: value2
println "$myResult"
}
}I expect to return a Json string or a map object which can contain running status such as "repo: xxx, version: xxx, total incidents: xxx ..."
Are you talking about the interface hudson.tasks.BuildStep ?
It returns a boolean but can't transport much infor.boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException;To get the running result, I am thinking to store the running result as an artifact and parse it out after running MyPlugin.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANDLexvYg2nmA_0StJ_%2BCXBLDzyRE0NwNWCgcWGMPGnU4pPBzg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/4800A4E8-7B18-4685-A786-94F4180A7DDE%40gmail.com.
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr0XBMiy-%2BHwnVZCB6GRLym8oeUZ%3DpM0f5Q5mhxgK3rE3g%40mail.gmail.com.
hi Ullrich,In my actual use case, I don't just print it out, but need to call other APIs with the result value.Thanks for your suggestion. I will have a try to implement the"org.jenkinsci.plugins.workflow.steps.Step"
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANDLexsv1U9NuUoPxyi%2BY%2B3%3DWqRXxw_wxUxZntfOW6%3D1BYmLug%40mail.gmail.com.