Hello, I am trying to make a pre-hook using Scriptrunner in Bitbucket. The hook is supposed to check if there is a file named "conanfile.py" whenever a user push, if there is not nothing happens but if there is, the hook check what's inside and compare it with a regex I made. The problem I have is that I can't seems to make it find the file. Here is the code of the hook in groovy :
Community moderators have prevented the ability to post new answers.