Trigger an operation after build complete in RTC server
Accepted answer
It is possible. You have to create an event handler extension, instead of an advisor or follow-up. The event category you can use is com.ibm.team.build.category.BuildResultChanged. As Ralph says it is an asynchronous operation, so it will begins some seconds after the build is completed and if it fails or throws an exception no message will be displayed to the user.
Every operation you try to perform with this extension will be performed by "admin" user so they should be permitted to everyone unless you implement an ImpersonationRunnable operation, and trigger it using the IImpersonationService. In this case you can set the user you want to perform the operation.
Every operation you try to perform with this extension will be performed by "admin" user so they should be permitted to everyone unless you implement an ImpersonationRunnable operation, and trigger it using the IImpersonationService. In this case you can set the user you want to perform the operation.
Comments
1 vote
2 votes
showing 5 of 7
show 2 more comments
One other answer
This is the list of extension points: https://jazz.net/wiki/bin/view/Main/CustomPreconditionsTable#operations
However, there is no extension point that does what you want. The reason is, that the build runs asynchronously and all the server knows about the build is sent to it from the build engine.
If you want to do additional automation during or at the end of the build, I would suggest to use the client API and perform that operation as a build step.
However, there is no extension point that does what you want. The reason is, that the build runs asynchronously and all the server knows about the build is sent to it from the build engine.
If you want to do additional automation during or at the end of the build, I would suggest to use the client API and perform that operation as a build step.