Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
Updated
  • Loading branch information
schijioke-uche authored May 31, 2021
1 parent 0062e63 commit c553039
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions AksTerraform/CleanUpAKSagentPool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,14 @@ print_header "4. Running Azure Pipelines agent..."
# `exec` the node runtime so it's aware of TERM and INT signals.
# AgentService.js understands how to handle agent self-update and restart.
exec ./externals/node/bin/node ./bin/AgentService.js interactive

print_header "5. Running Azure Pipelines agent..."

# `exec` the node runtime so it's aware of TERM and INT signals
# AgentService.js understands how to handle agent self-update and restart
exec ./externals/node/bin/node ./bin/AgentService.js interactive --once & wait $!

# We expect the above process to exit when it runs once,
# so we now run a cleanup process to remove this agent
# from the pool
cleanup

0 comments on commit c553039

Please sign in to comment.