Extention with different configuration for different BuildConfiguration

Hello.
I need to create something like buildRunner listener. But it should be configured differently for different BuildConfiguration.
I have saw that Yandex Allure is registered as buildConfiguration feature. But I can't find how does it done.
Can somebody helps me to find how can I do something like this.

6 comments
Comment actions Permalink

Hi Alexey,


Yandex Allure plugin seems to provide a build runner to be used a a build step.

For example of a "build feature" creation you can check sources of the bundeld XML test report plugin. The defition and the UI part.

0
Comment actions Permalink

Thanks a lot.

But seems BuildFeature is not that I need.
I need to listen finish of BuildRun (successfully or failed). And I need to define properties for different build configuration to define different behaviuor for each configuration.
What plugint type is better to use?

0
Comment actions Permalink

Alexey,

You can plug in logic on build finish just by implementing proper listeners (BuildServerListener on the server and AgentLifeCycleListener for the agent processing).
"Build feature" is a proper tool to add your settings UI and store settings on the build configuration level.

0
Comment actions Permalink

If I will register new BuildServerListener. How can I configure it throught the interface?

0
Comment actions Permalink

As noted, one of the ways is to provide a "build feature" with your settings and use the settings then on the agent in your listener. You can get an example in the same XML test report plugin. Here is agent listener part.

0
Comment actions Permalink

Thanks I've got my first working prototype.
And I have one more question is it possible take Issue Tracker connection setting from SRunningBuild?
I understand how I can get information about project from runningBuild. But I can't understand if IssueTracker information accessable.

0

Please sign in to leave a comment.