>
> Is it possible to capture the return value from pipeline step?
>
> ex:
> def result = findbugs(pattern: '**/target/**/findbugsXml.xml')
> echo result
>

To store cmd status or output, you should use sh(). You will find code 
snippets in this link, https://jenkins.io/doc/pipeline/examples/

BTW, Jenkins Pipeline doc has step called, "findFiles" but there is nothing 
like, findbugs. Is that your custom function?

/Ram
 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/fc1b0b4e-bb5b-4f23-b408-ab9965d8692b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to