Information Request - Pipeline Execution Node Run Schema

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Information Request - Pipeline Execution Node Run Schema

Jimmy Ray
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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: Information Request - Pipeline Execution Node Run Schema

Jesse Glick-4
On Thu, Jul 27, 2017 at 1:28 PM, Jimmy Ray <[hidden email]> 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.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr2amdC9n-Yawg-5W2Aw475nrY9FtYiuiUSJ0HDoBT2%3D6w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Information Request - Pipeline Execution Node Run Schema

Jimmy Ray
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?

On Thursday, 27 July 2017 15:41:40 UTC-4, Jesse Glick wrote:
On Thu, Jul 27, 2017 at 1:28 PM, Jimmy Ray <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="zRJZ8cvzBwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jimmy...@...> 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.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/394cdab0-1707-48e0-b529-b21ada079f3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.