Request a build programmatically
I'm searching how to request a build after a work-item has changed his state . On https://jazz.net/wiki/bin/view/Main/BuildJavaProgrammingExamples I've find how to do it on client side but I'd like to do it on server side. All the build services seems to be internal. Which services do I have to use in order to retrieve BuildRequest and BuildDefinition?
8 answers
I'm searching how to request a build after a work-item has changed his state . On https://jazz.net/wiki/bin/view/Main/BuildJavaProgrammingExamples I've find how to do it on client side but I'd like to do it on server side. All the build services seems to be internal. Which services do I have to use in order to retrieve BuildRequest and BuildDefinition?
Any help?
ITeamBuildRequestClient.requestBuild(IBuildDefinitionHandle buildDefinitionHandle,
IBuildProperty[] newOrModifiedBuildProperties,
IBuildProperty[] deletedBuildProperties,
boolean allowDuplicateRequests,
boolean personalBuild,
IProgressMonitor progressMonitor)
My goal is to submit a personal build. I have several questions:
how to define the repository workspace as part of the requestBuild parameter
how to define the Build Properties as part of the requestBuild parameter
Any sample code is appreciated. Thanks.