...
Code Block | ||||
---|---|---|---|---|
| ||||
<build>
<triggeringOptions cleanSources="true" rebuildAllDependencies="true" queueAtTop="true"/>
<buildType id="buildConfID"/>
<lastChanges>
<change id="modificationId" personal="false"/>
</lastChanges>
</build>
|
...
Get all changes for a project: GET http://teamcity:8111/app/rest/changes?locator=project:projectId
Get all the changes in a build configuration since a particular change identified by its id: http://teamcity:8111/app/rest/changes?locator=buildType:(id:buildConfigurationId),sinceChange:(id:changeId)
Get pending changes for a build configuration http://teamcity:8111/app/rest/changes?locator=buildType:(id:BUILD_CONF_ID),pending:true
Anchor | ||||
---|---|---|---|---|
|
The
<lastChanges>
tag contains information about the last commit included into the build and is only good for re-triggering the build: it contains the TeamCity internal id (the id attribute) associated with the commit, which is necessary for TeamCity to trigger a custom build on the same commit (see the example above)....