Caused by: org.gradle.api.tasks.TaskExecutionException: Execution failed
When building on Jenkins, if GRADLE_USER_HOME is not specified, it will try to dump the Gradle cache in System32 folder which causes this issue. Changing to a different directory via System Environment variable resolves the issue.