Re: Collecting Workflow Run Info in Pipeline

2016-10-21 Thread Baptiste Mathus
IMO this is fragile because it's not really a job's job. Seems more like a
plugin's one. Might be interesting for others btw. Something like a
pipeline-runs-summary plugin.

Le 18 oct. 2016 5:19 PM, "Zack Sampson"  a écrit :

> I figured this out. I ended up crawling around the actual workflow UI java
> code. It's fragile, but this doesn't appear to be supported in a nonfragile
> way. The classes I used were FlowNodeUtil, Describe, StatusExt, etc.
>
> On Monday, October 17, 2016 at 10:34:20 AM UTC-4, Zack Sampson wrote:
>>
>> Hey,
>>
>> I'm trying to write a Pipeline job to generate a daily summary of my
>> pipeline runs from the preceding day. I've figured out that in a
>> non-sandboxed, non-CPS block I can get at the hudson instance and from
>> there find the jobs/runs, but I can't find out how to get to the "stage X
>> took Y minutes" data.
>>
>> Has anyone done this before? Do you know where that data lives within
>> WorkflowRun?
>>
>> Thanks,
>> - Zack
>>
> --
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/db0f58bd-35ca-474a-9849-9e3e8f28235f%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS4coA8SVRSkDk8%2BqAdiXNkX1-j2TjYeiW-V_qkyF9ibTw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Collecting Workflow Run Info in Pipeline

2016-10-18 Thread Zack Sampson
I figured this out. I ended up crawling around the actual workflow UI java 
code. It's fragile, but this doesn't appear to be supported in a nonfragile 
way. The classes I used were FlowNodeUtil, Describe, StatusExt, etc.

On Monday, October 17, 2016 at 10:34:20 AM UTC-4, Zack Sampson wrote:
>
> Hey,
>
> I'm trying to write a Pipeline job to generate a daily summary of my 
> pipeline runs from the preceding day. I've figured out that in a 
> non-sandboxed, non-CPS block I can get at the hudson instance and from 
> there find the jobs/runs, but I can't find out how to get to the "stage X 
> took Y minutes" data.
>
> Has anyone done this before? Do you know where that data lives within 
> WorkflowRun?
>
> Thanks,
> - Zack
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/db0f58bd-35ca-474a-9849-9e3e8f28235f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Collecting Workflow Run Info in Pipeline

2016-10-17 Thread Zack Sampson
Hey,

I'm trying to write a Pipeline job to generate a daily summary of my 
pipeline runs from the preceding day. I've figured out that in a 
non-sandboxed, non-CPS block I can get at the hudson instance and from 
there find the jobs/runs, but I can't find out how to get to the "stage X 
took Y minutes" data.

Has anyone done this before? Do you know where that data lives within 
WorkflowRun?

Thanks,
- Zack

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/2f5dec60-89d9-4008-874f-95773aef2e29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.