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?
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/4f2afdc3-57e2-4269-82ea-8d28efece68a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.