Skip to content

Commit

Permalink
add static code analysis to build step as a flaggable feature - check…
Browse files Browse the repository at this point in the history
… DB not required
  • Loading branch information
aguard-redgate committed Feb 27, 2024
1 parent eba2223 commit 9ec8abc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ stages:
continueOnError: false
displayName: 'Validate Migrate Scripts'

- script: '$(FLYWAY) info check -check.rulesLocation="$(Build.SourcesDirectory)\templates\rules" -code -url="$(target_database_JDBC)" -reportFilename="$(System.ArtifactsDirectory)\$(databaseName)-$(Build.BuildId)-$(DRIFT_AND_CHANGE_REPORT)" -locations="filesystem:$(WORKING_DIRECTORY)\$(Build.Repository.Name)\migrations"'
- script: '$(FLYWAY) info check -check.rulesLocation="$(Build.SourcesDirectory)\templates\rules" -code -url="$(target_database_JDBC)" -reportFilename="$(System.ArtifactsDirectory)\$(databaseName)-$(Build.BuildId)-Code-Analysis.html" -locations="filesystem:$(WORKING_DIRECTORY)\$(Build.Repository.Name)\migrations"'
continueOnError: false
workingDirectory: '$(WORKING_DIRECTORY)\$(Build.Repository.Name)'
displayName: '$(DRIFT_AND_CHANGE_REPORT_DISPLAY_NAME)'
Expand Down

0 comments on commit 9ec8abc

Please sign in to comment.