Jenkins job output values

285 views
Skip to first unread message

Alan Evangelista

unread,
Apr 28, 2016, 7:55:32 PM4/28/16
to jenkins...@googlegroups.com
Hi.

I execute a Jenkins job remotely via the Jenkins API and I need to get one or more return values
from the Jenkins build. Is there any way to define,
when running a build, a custom return value
which will be returned by the Jenkins API ? What are the alternatives? The ones I currently see:

- writing a file with the output in a system accessible by Jenkins server and the caller.
  Caller downloads the file after the build is complete and extracts output values from it.

- writing output to stdout. Caller gets build console output via Jenkins API and extracts
  output values from it.

Anything else? What is the standard way to do this?


Regards,
Alan Evangelista

Baptiste Mathus

unread,
Apr 29, 2016, 5:48:06 PM4/29/16
to jenkins...@googlegroups.com
Hi,

No standard way to my knowledge. Or possibly write a simple plugin that would do that parsing from the log or the FS as you say, or whatever, and would expose a RESTish API.

My 2 cents.

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/57229D7D.3000707%40linux.vnet.ibm.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages