My requirement is to pull the list of SQL scripts (.sql files) from a git repository which are recently committed to the repository and run them in the database (Oracle) through SQLPLUS through Jenkins or GitLab CI/CD runner. I have Gitlab as a version control. While I know we can use SQLPLUS extension in Jenkins but I am not sure how can I get the list of committed .sql files from the Gitlab repository or how can I achieve it in Gitlab CI/CD runner. Can anyone help me with a sample shell scripts which can achieve it?
I have searched it in google but could not but any definite answer.
Thank You