lib/cicd/builder/mixlib/environment.rb in cicd-builder-0.9.14 vs lib/cicd/builder/mixlib/environment.rb in cicd-builder-0.9.15
- old
+ new
@@ -89,11 +89,11 @@
end
ret
end
# ---------------------------------------------------------------------------------------------------------------
- def saveEnvironment(ignored=[])
+ def saveEnvironment(ignored=['LS_COLORS','AWS_ACCESS_KEY_ID','AWS_SECRET_ACCESS_KEY'])
@logger.info "Save environment to #{@vars[:vars_fil]}"
vstr = ['[global]']
ENV.to_hash.sort.each{|k,v|
vstr << %(#{k}="#{v}") unless ignored.include?(k)
}
@@ -160,10 +160,10 @@
@logger.error "FAILURE: #{ENV['JOB_NAME']} #{ENV['BUILD_NUMBER']} #{@vars[:build_pkg]} #{@vars[:return_code]}"
end
end
# ---------------------------------------------------------------------------------------------------------------
- def reportStatus(ignored=[])
+ def reportStatus(ignored=['AWS_ACCESS_KEY_ID', 'AWS_SECRET_ACCESS_KEY'])
# [2013-12-30 Christo] Report status,environment, etc.
if @logger.level < ::Logging::LEVELS['warn']
@logger.info '='*100
@logger.info Dir.getwd()
\ No newline at end of file