0
I am working with PHP and Mysql on Windows, my repository is in Gitlab. I wish to use Jenkins to run a job or pipeline when pushing to the repository.
The job should check the changed files in the commit and if there are changes in any file in the directory called bd_changes it should run the SQL that is in this modified file.
In short:
To run the SQL script I will create a Build of type "Run in windows command".
How do I identify if there have been changes to the bd_changes directory ?
How do I read the contents of this file ?
Note: I know it is possible to use Gitlab to perform the procedure and dismiss Jenkins, but I am studying the tool.