Skip to content

Commit

Permalink
Auto remove windows agent after 10 runs to prevent cleanup issues
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon committed Jan 8, 2024
1 parent 2d2235e commit d909164
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/compute/agent-nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export class AgentNodes {
workerLabelString: 'Jenkins-Agent-Windows2019-X64-C54xlarge-Docker-Host',
instanceType: 'C54xlarge',
remoteUser: 'Administrator',
maxTotalUses: -1,
maxTotalUses: 10,
minimumNumberOfSpareInstances: 4,
numExecutors: 4,
amiId: 'ami-0a9759da263ce9304',
Expand All @@ -205,7 +205,7 @@ export class AgentNodes {
workerLabelString: 'Jenkins-Agent-Windows2019-X64-C54xlarge-Docker-Builder',
instanceType: 'C54xlarge',
remoteUser: 'Administrator',
maxTotalUses: -1,
maxTotalUses: 10,
minimumNumberOfSpareInstances: 1,
numExecutors: 1,
amiId: 'ami-0a9759da263ce9304',
Expand Down

0 comments on commit d909164

Please sign in to comment.