0
votes

In azure devops we have hosted agent when I try to build using "ant" build the error I get is "BUILD FAILED E:\x\work\sdm\sdm\build.xml:44: Unable to delete directory E:\X\work\sdm\sdm\Web\WEB-INF\classes\com\national\sdm"

ant and java path has been set in environment variables java version "1.8.0_241"
Apache Ant(TM) version 1.9.14

Seems azure devops doesn't have permission on agent to delete or copy how to rectify it?

1

1 Answers

0
votes

I was able to find it from other stack overflow page thanks to @Marina Liu "VSTS build agent failed with get sources: Permission denied"

In services--> agent-->properties-->log on-->deselected from this account and selected "local account system"