bin/sf in salesforce-deploy-tool-2.1.1 vs bin/sf in salesforce-deploy-tool-3.1.0
- old
+ new
@@ -27,11 +27,10 @@
# Read sandbox environment
begin
config[:sandbox] = File.open(File.expand_path(SANDBOX_CONFIG_FILE)).read
rescue
- config[:sandbox] = nil
end
# Configuration variables firrst from ENV , if not config file
# Git configs:
@@ -41,9 +40,10 @@
# Salesforce credential configs
config[:username] = ENV["SFDT_USERNAME"] || config[:username]
config[:password] = ENV["SFDT_PASSWORD"] || config[:password]
config[:salesforce_url] = ENV["SFDT_SALESFORCE_URL"] || config[:salesforce_url]
+config[:sandbox] = ENV['SFDT_SANDBOX'] || config[:sandbox]
# Project configs
config[:version_file] = ENV["SFDT_VERSION_FILE"] || config[:version_file]
config[:build_number_pattern] = ENV["SFDT_BUILD_NUMBER_PATTERN"] || config[:build_number_pattern]
config[:commit_hash_pattern] = ENV["SFDT_COMMIT_HASH_PATTERN"] || config[:commit_hash_pattern]