lib/awestruct/deploy/base_deploy.rb in awestruct-0.5.4.rc3 vs lib/awestruct/deploy/base_deploy.rb in awestruct-0.5.4

- old
+ new

@@ -25,10 +25,15 @@ @ignore_uncommitted = deploy_config['uncommitted'] init_scm(deploy_config['scm'] || 'git') end def run + if ExceptionHelper.build_failed? + ExceptionHelper.log_message 'Not running deploy due to build failure' + return + end + if @ignore_uncommitted == true compress_site publish_site else if @scm.uncommitted_changes? @source_dir @@ -96,9 +101,10 @@ begin clazz = Object.const_get('Awestruct').const_get('Scm').const_get(type.capitalize) @scm = clazz.new rescue ExceptionHelper.log_message( "Could not resolve class for scm type: #{type}" ) + ExceptionHelper.mark_failed end end end end end