BuildDefinition Save Event (Advisor or Participant)
HI All,
Is there any extension point/operation id for save build definition event?
I'm trying to validate some build properties and also setting some properties based on others.
Currently I'm using "com.ibm.team.build.server.requestBuild", but I'm not able to change the build request properties. All that I can do is to retrieve an workingCopy of the build definition, change its properties and save it. Then I have to cancel the request and make a new build request programmatically (which calls the advisor one more time).
Thanks,
Bello
Accepted answer
Hi Eduardo, can you describe what you're trying to do at a higher level? When issuing a build request, the APIs allow overriding the properties specified in the build definition, but it sounds like what you're trying to do is to intercept requests being made by some other client. Modifying the build definition is probably not the best way to go.
Note that in 4.x, the operation advisor / participant for "com.ibm.team.build.server.requestBuild" are passed a com.ibm.team.build.common.model.IBuildRequestParams instance as the AdvisableOperation's operation data. With this you could add properties to add/override in IBuildRequestParams.getNewOrModifiedBuildProperties(), to remove in getDeletedBuildProperties().
Comments
showing 5 of 6
show 1 more comments