java.nio.file.AccessDeniedException: C:\ProgramData\Jenkins\.jenkins\fingerprints

Hi,
I get the below fatal error after running build from Jenkins. This was not happening earlier. Please help

FATAL: C:\ProgramData\Jenkins.jenkins\fingerprints\71\dc\atomic17809256675471159922tmp → C:\ProgramData\Jenkins.jenkins\fingerprints\71\dc\9c3361eb253ec4dc1da9d6363305.xml
Also: java.nio.file.AccessDeniedException: C:\ProgramData\Jenkins.jenkins\fingerprints\71\dc\atomic17809256675471159922tmp → C:\ProgramData\Jenkins.jenkins\fingerprints\71\dc\9c3361eb253ec4dc1da9d6363305.xml

java.nio.file.FileAlreadyExistsException: C:\ProgramData\Jenkins.jenkins\fingerprints\71\dc\atomic17809256675471159922tmp → C:\ProgramData\Jenkins.jenkins\fingerprints\71\dc\9c3361eb253ec4dc1da9d6363305.xml

1 Like

sounds like you are having access denied errors. Do you want to check that directory to make sure it exists and the user running jenkins has access to it.

Btw, your title says C:\ProgramData\Jenkins\.jenkins\ but your stacktraces say C:\ProgramData\Jenkins.jenkins\ which makes me think JENKINS_HOME isn’t set right.

Have access to the directory and I am running Jenkins. No other user is added. I did verify JENKINS_HOME is the same in config.xml and in environment variables. Additional information is that Jenkins is installed in Windows server machine and not standalone machine.

I found the solution. Checked the below options in Project Build settings.
image

1 Like

Please mark your answer as the solution if it worked.