Gradle build failing with some weird push error

  • What went wrong:
    Execution failed for task ‘:qmoney:installGitHooks’.

Could not copy file ‘/home/crio-user/workspace/rachitgarg900-ME_QMONEY/CRIO/pre-push’ to ‘/home/crio-user/workspace/rachitgarg900-ME_QMONEY/.git/hooks/pre-push’.

I am passing all tests but getting this error. Please help.

Did you try this?

I guess somehow the pre-push file was owned by root. changed it back to crio-user and it worked. Thanks @sridherj-criodo for help.