[Pipeline/Workflow] API for "parallel" metadata

34 views
Skip to first unread message

Yotam Shapira

unread,
Jan 25, 2016, 5:46:49 PM1/25/16
to Jenkins Users
Hi,

I have a parallel workflow that I want to extract some metadata from. For example, for the following workflow:
parallel {
  "a": node ('...') { 
    ...
  },
  "b": node ('...') { 
    ...
  }
}

I would now like to know if "a" succeeded, how much time it took to run, etc.

Is that possible in any way? I couldn't find any API to support this...

Thanks,
Yotam

Craig Rodrigues

unread,
Jan 25, 2016, 6:00:17 PM1/25/16
to Jenkins Users
In this this example:

https://github.com/jenkinsci/workflow-examples/tree/master/pipeline-examples/timestamper-wrapper

it allows you to wrap certain operations and add timestamps to the console output.
That may not quite meet your needs, but hopefully you can get some ideas as to how to proceed.

--
Craig


--
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/cc6fba76-67a2-4c77-bc32-5259d6c0e17b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yotam Shapira

unread,
Jan 25, 2016, 6:12:34 PM1/25/16
to Jenkins Users, rod...@freebsd.org
Not really - what I want is to analyze the parallel steps and send a report with the data, update the job with the Groovy Postbuild plugin for better UI to the job's users, etc.
What the example does is use a plugin that writes the timestamps of each action in the log.
Thanks for the response though.
Reply all
Reply to author
Forward
0 new messages