Re: get all agents used by a build

2022-04-22 Thread 'Jesse Glick' via Jenkins Developers
On Fri, Apr 22, 2022 at 11:18 AM Mathieu DELROCQ 
wrote:

> get the duration of the stage wich use the agent
>

Should be possible to calculate given
https://javadoc.jenkins.io/plugin/workflow-api/org/jenkinsci/plugins/workflow/actions/TimingAction.html

-- 
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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr0V0%3Dtdg%3D0bQSV46t31wYE1ASTxREhp_pkxW9otH_1-gA%40mail.gmail.com.


Re: get all agents used by a build

2022-04-22 Thread Mathieu DELROCQ
It is working as expected. But now I'm trying to get the duration of the
stage wich use the agent and I don't find a way to do that.
Do you have an idea ?

Thanks in advance.

Mathieu DELROCQ

Le mer. 20 avr. 2022 à 15:50, Mathieu DELROCQ  a
écrit :

> Thank you I will try this !! :D
>
> Le mer. 20 avr. 2022 à 14:25, 'Jesse Glick' via Jenkins Developers <
> jenkinsci-dev@googlegroups.com> a écrit :
>
>> On Wed, Apr 20, 2022 at 4:03 AM Mathieu DELROCQ <
>> delrocq.math...@gmail.com> wrote:
>>
>>> I have a Run object and I would like to get all agents used in this run.
>>>
>>
>> For `AbstractBuild` (traditional job types), there is a getter. For
>> Pipeline (`FlowExecutionOwner.Executable`) you would need to iterate the
>> `FlowNode`s looking for `WorkspaceAction` (this would be added to the block
>> entry nodes for the `node` step).
>>
>> --
>> 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 jenkinsci-dev+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr0hhKzUjUXg1qYxyUR-OcNkiKpbViV3yjtnJvLE8SL7JA%40mail.gmail.com
>> 
>> .
>>
>

-- 
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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CA%2BWZsgBYikPFvh_4F6qB6bF%2BGfAzZjUaP58x8Ste2gmhK3tteA%40mail.gmail.com.


Re: get all agents used by a build

2022-04-20 Thread Mathieu DELROCQ
Thank you I will try this !! :D

Le mer. 20 avr. 2022 à 14:25, 'Jesse Glick' via Jenkins Developers <
jenkinsci-dev@googlegroups.com> a écrit :

> On Wed, Apr 20, 2022 at 4:03 AM Mathieu DELROCQ 
> wrote:
>
>> I have a Run object and I would like to get all agents used in this run.
>>
>
> For `AbstractBuild` (traditional job types), there is a getter. For
> Pipeline (`FlowExecutionOwner.Executable`) you would need to iterate the
> `FlowNode`s looking for `WorkspaceAction` (this would be added to the block
> entry nodes for the `node` step).
>
> --
> 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 jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr0hhKzUjUXg1qYxyUR-OcNkiKpbViV3yjtnJvLE8SL7JA%40mail.gmail.com
> 
> .
>

-- 
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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CA%2BWZsgA4qtW_oPcdaKmYkUkd-aYrqbFzrABLvuHKpP9QxJuGPg%40mail.gmail.com.


Re: get all agents used by a build

2022-04-20 Thread 'Jesse Glick' via Jenkins Developers
On Wed, Apr 20, 2022 at 4:03 AM Mathieu DELROCQ 
wrote:

> I have a Run object and I would like to get all agents used in this run.
>

For `AbstractBuild` (traditional job types), there is a getter. For
Pipeline (`FlowExecutionOwner.Executable`) you would need to iterate the
`FlowNode`s looking for `WorkspaceAction` (this would be added to the block
entry nodes for the `node` step).

-- 
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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr0hhKzUjUXg1qYxyUR-OcNkiKpbViV3yjtnJvLE8SL7JA%40mail.gmail.com.