Reputation: 83
I have an existing nodejs app which i have pushed to the VSTS repository. I have added three build tasks
Upvotes: 1
Views: 333
Reputation: 114561
Some tasks, like nodemon
start a background process and will watch the folder for changes. Normally you'd place these under the watch
command, then implement a one-pass version of that in the build
command.
As long as the Watch is running, control over the process isn't handed back to the Build agent and this will hang your build.
(Re)moving the commands that start watch/monitor processes so they won't get executed during a build is your best solution.
Upvotes: 2