Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Supporting latest vso-node-api build #135

Merged
merged 1 commit into from
Oct 30, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Supporting latest vso-node-api build
  • Loading branch information
thechrisjohnson authored and Christopher Johnson (CJ) committed Oct 30, 2015
commit e8f8d249a2d8cc1a5a5c4844220e054e1961fce7
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"svchost": "0.1.x",
"svcinstall": "^0.2.1",
"validator": "~3.11.0",
"vso-node-api": "^0.4.0",
"vso-node-api": "^0.5.0",
"vso-task-lib": "^0.4.0",
"xmlreader": "^0.2.3"
},
Expand Down
6 changes: 3 additions & 3 deletions src/agent/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class Configurator {
return agentApi.connect()
.then((connected: any) => {
console.log('successful connect as ' + connected.authenticatedUser.customDisplayName);
return agentApi.getPools(settings.poolName, null);
return agentApi.getAgentPools(settings.poolName, null);
})
.then((agentPools: agentifm.TaskAgentPool[]) => {
if (agentPools.length == 0) {
Expand Down Expand Up @@ -229,7 +229,7 @@ export class Configurator {
return agentApi.connect()
.then((connected: any) => {
console.log('successful connect as ' + connected.authenticatedUser.customDisplayName);
return agentApi.getPools(settings.poolName, null);
return agentApi.getAgentPools(settings.poolName, null);
})
.then((agentPools: agentifm.TaskAgentPool[]) => {
if (agentPools.length == 0) {
Expand Down Expand Up @@ -263,7 +263,7 @@ export class Configurator {
return agentApi.updateAgent(agent, agentPoolId, agentId);
}
else {
return agentApi.createAgent(agent, agentPoolId);
return agentApi.addAgent(agent, agentPoolId);
}
})
.then((agent: agentifm.TaskAgent) => {
Expand Down
Loading