public PublisherState canPublish() throws Exception { if (allComponentsFinished()) { LOG.info("All components finished successfully, checking quality tests"); if (passedAllTests()) { LOG.info("All required test passed for this task passed."); if (cleanup()) { LOG.info("Cleanup for task publisher executed successfully."); return PublisherState.SUCCESS; } return PublisherState.CLEANUP_FAIL; } return PublisherState.POLICY_TESTS_FAIL; } return PublisherState.COMPONENTS_NOT_FINISHED; }
public PublisherState canPublish() throws Exception { if (allComponentsFinished()) { LOG.info("All components finished successfully, checking quality tests"); if (passedAllTests()) { LOG.info("All required test passed for this task passed."); if (cleanup()) { LOG.info("Cleanup for task publisher executed successfully."); return PublisherState.SUCCESS; } return PublisherState.CLEANUP_FAIL; } return PublisherState.POLICY_TESTS_FAIL; } return PublisherState.COMPONENTS_NOT_FINISHED; }