Information Request - Pipeline Execution Node Run Schema

30 views
Skip to first unread message

Jimmy Ray

unread,
Jul 27, 2017, 1:28:51 PM7/27/17
to Jenkins Developers
We are building solutions using the RESTful wfapi, and I am trying to discern the node schema that is used on the resultant JSON payloads.  Given the output below, I am seeing nodes 6 and 11 that have useful data.  My question is, how would I know which nodes from which to gather logs, if were going to use the "/job/Examples/job/ExamplePipelineDSLJob/:run-id/execution/node/:node-id/wfapi/log"?  Would I have to first traverse the "run" itself?


{
"_links": {"self": {"href": "/job/Examples/job/ExamplePipelineDSLJob/3/wfapi/describe"}},"id": "3","name": "#3","status": "SUCCESS","startTimeMillis": 1501173099695,"endTimeMillis": 0,"durationMillis": 0,"queueDurationMillis": 114,"pauseDurationMillis": 0,"stages": [{"_links": {"self": {"href": "/job/Examples/job/ExamplePipelineDSLJob/3/execution/node/6/wfapi/describe"}},"id": "6","name": "scm","execNode": "","status": "SUCCESS","startTimeMillis": 1501173099809,"durationMillis": 65,"pauseDurationMillis": 0},{"_links": {"self": {"href": "/job/Examples/job/ExamplePipelineDSLJob/3/execution/node/11/wfapi/describe"}},"id": "11","name": "build","execNode": "","status": "SUCCESS","startTimeMillis": 1501173099912,"durationMillis": 68,"pauseDurationMillis": 0}]}

I mean, is there documentation that illustrates how pipeline execution nodes IDs are determined and arranged?  It seems to me that a pipeline is subdivided into so-called "execution nodes".  So, while execution node ID 6 wfapi/log shows success, execution node ID 7 shows actual echo statement within the stage.  Is there a schema?  Is there a way to see the entire node tree of the run, with the numeric node IDs?

Jesse Glick

unread,
Jul 27, 2017, 3:41:40 PM7/27/17
to Jenkins Dev
On Thu, Jul 27, 2017 at 1:28 PM, Jimmy Ray <jimmy...@gmail.com> wrote:
> We are building solutions using the RESTful wfapi

This is written by / only used by the Stage View visualization, which
is dormant, all the active work going into Blue Ocean. So I would not
really recommend relying on it, though presumably no one is about to
actively break it either.

Jimmy Ray

unread,
Jul 27, 2017, 3:55:01 PM7/27/17
to Jenkins Developers
So, to be clear, you all are not doing anymore work on the Stage View Visualization?  Will Blue Ocean expose an API that non-Jenkins apps can consume for these data?
Reply all
Reply to author
Forward
0 new messages