It appears that you someone may have run the build as a root user. Try deleting the file `.gradle` directory and try again.
On Thu, Jun 16, 2016 at 4:29 PM Charles Moga <[email protected]> wrote: > Hello, > I hope someone can assist as I am not sure to resolve one issue. I have a > task that runs gradle command. This jobs fails and when I checked the > output I found this: > > java.io.FileNotFoundException: > /var/lib/go-agent/pipelines/<mypipeline>/.gradle/1.4/taskArtifacts/cache.properties.lock > (Permission denied) > > On closer look I found that build artifact directories (build and .gradle) > are owned by root user not 'go'. As a result, the go agent cannot delete them. > > What is the recommendation to avoid/resolve this issue. > > Thanks for assistance. > > With regards > Charles > > > -- > You received this message because you are subscribed to the Google Groups > "go-cd" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
