It's all about the answers!

Ask a question

Build Configuration Elements - Order of Execution


David Rostocil (911410) | asked Apr 28 '10, 11:50 a.m.
I have created a new pre-build configuration element to perform some verification tasks before a build is executed. My question is, is the order of pre-build task execution consistent? From my experimentation they always get executed in the order they are defined in my plugin.xml.


<buildDefinitionTemplate>
<buildConfigurationElement>
</buildConfigurationElement>
<buildConfigurationElement>
</buildConfigurationElement>
<buildConfigurationElement>
</buildConfigurationElement>
<buildConfigurationElement>
</buildConfigurationElement>
<availableBuildConfigurationElement>
</availableBuildConfigurationElement>
<availableBuildConfigurationElement>
</availableBuildConfigurationElement>
</buildDefinitionTemplate>


Can I safely assume this will always be the case?

Thanks,
-Dave

2 answers



permanent link
David Rostocil (911410) | answered Apr 30 '10, 10:15 a.m.
The order of phases is: PRE_BUILD, BUILD, POST_BUILD. Within each phase, the participants corresponding to the configurations are executed in order. Note that users may customize the order (for a given phase), either in the build definition wizard when creating the definition, or afterwards by choosing Edit Configuration in the context menu in the header of the build definition editor.



Thanks,

That makes sense. I missed that you could set the order while creating the definition with the 'Move Up' and 'Move Down' buttons.

-Dave

permanent link
Nick Edgar (6.5k711) | answered Apr 30 '10, 10:08 a.m.
JAZZ DEVELOPER
The order of phases is: PRE_BUILD, BUILD, POST_BUILD. Within each phase, the participants corresponding to the configurations are executed in order. Note that users may customize the order (for a given phase), either in the build definition wizard when creating the definition, or afterwards by choosing Edit Configuration in the context menu in the header of the build definition editor.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.