lib/cicd/builder/mixlib/environment.rb in cicd-builder-0.9.35 vs lib/cicd/builder/mixlib/environment.rb in cicd-builder-0.9.36

- old
+ new

@@ -2,10 +2,11 @@ module Builder require 'awesome_print' # --------------------------------------------------------------------------------------------------------------- def checkEnvironment() + @logger.info __method__.to_s # [2013-12-30 Christo] Detect CI ... unless ENV.has_key?('JENKINS_HOME') @logger.error "Sorry, your CI environment is not supported at this time (2013-12-30) ... Christo De Lange\n"+ 'This script is developed for Jenkins so either you are not using Jenkins or you ran me outside of the CI ecosystem ...' return 99 @@ -28,10 +29,11 @@ 0 end # --------------------------------------------------------------------------------------------------------------- def getVars() + @logger.info __method__.to_s @vars ||= {} @vars[:release] = 'latest' @vars[:build_store] = '/tmp' @vars[:variant] = 'SNAPSHOT' @@ -132,9 +134,10 @@ return @vars[:return_code] end # --------------------------------------------------------------------------------------------------------------- def saveBuild() + @logger.info __method__.to_s begin raise 'ERROR: Checksum not read' unless @vars.has_key?(:latest_sha) raise 'ERROR: Checksum not calculated' unless @vars.has_key?(:build_sha) change = false if @vars[:latest_sha] != @vars[:build_sha] \ No newline at end of file