Our SQL script gets failed in Liquibase if the SQL script contains a "GO" statement. We deploy 30 to 50 SQL scripts on every release.
How does everyone check the preconditions of the sql file before submitting it for the Liquibase build? I am getting error like this below when sql script has "GO" statement in it.
20230-03-02 04:50:00 Liquibase INFO caused by: com.microsoft.sqlserver.jdbc.SQLServerException : Incorrect syntax near 'GO'
Multiple developers work on the team, so it's hard to manually check each and every file. Is there a way to do the precondition of liquibase before it triggers by Jenkins build
P.S : We have setup CI/CD for liquibase commit on lower environments.