lib/cicd/builder/mixlib/environment.rb in cicd-builder-0.9.61 vs lib/cicd/builder/mixlib/environment.rb in cicd-builder-0.9.62

- old
+ new

@@ -36,13 +36,14 @@ def getVars() @logger.step CLASS+'::'+__method__.to_s @logger.info "Unused ENV vars: #{@default_options[:env_unused].ai}" if @default_options[:env_unused].size > 0 - @vars ||= {} - @vars[:release] = 'latest' - @vars[:build_store] = '/tmp' - @vars[:variant] = 'SNAPSHOT' + @vars ||= {} + @vars[:release] = 'latest' + @vars[:build_store] = '/tmp' + @vars[:variant] = 'SNAPSHOT' + @vars[:upload_timer] = ENV.has_key?('ARTIFACT_UPLOAD_TIMER') ? ENV['ARTIFACTORY_UPLOAD_TIMER'].to_i : 300 if ENV.has_key?('PROJECT_NAME') @vars[:product] = @vars[:project_name] = ENV['PROJECT_NAME'] end \ No newline at end of file