Closed Loafabreadly closed 1 year ago
- run: name: Check Log4j console appender level command: | if [ "$(grep -c 'consoleAppender.threshold=INFO' log4j.properties)" -eq 0 ]; then echo "Log4j console appender level is not set to INFO" exit 1 fi
Or something like this
Testing completed - CI/CD pipeline will now fail and not push a build to prd if the logger is set to anything other than INFO.
Also changed the logic so that all commits on all branches will run the gradle-build job but only master will get an image built and pushed to ECS.
I need to change the config.yml to check for the Console Appenders log level, ensuring it is INFO, and failing the pipeline otherwise.