scripts/internal_sources.rb in omnibus-software-23.2.281 vs scripts/internal_sources.rb in omnibus-software-23.2.283

- old
+ new

@@ -3,11 +3,11 @@ require "openssl" require "tmpdir" require "yaml" ARTIFACTORY_REPO_URL = ENV["ARTIFACTORY_REPO_URL"] || "https://artifactory-internal.ps.chef.co/artifactory/omnibus-software-local" -ARTIFACTORY_TOKEN = ENV["ARTIFACTORY_TOKEN"] +ARTIFACTORY_PASSWORD = ENV["ARTIFACTORY_PASSWORD"] def print_usage puts "Must provide path to internal_sources.yml file." puts "Usage: ./internal_sources.rb <file path> [only]" puts "" @@ -46,10 +46,10 @@ file_name = File.basename(source["url"]) downloaded_file = File.join(dir, file_name) repo_url = File.join(ARTIFACTORY_REPO_URL, name, file_name) puts "Uploading #{downloaded_file} to #{repo_url}" - raise "Failed to upload" unless system("curl -s -H 'X-JFrog-Art-Api:#{ARTIFACTORY_TOKEN}' -T '#{downloaded_file}' #{repo_url}") + raise "Failed to upload" unless system("curl -s -H 'X-JFrog-Art-Api:#{ARTIFACTORY_PASSWORD}' -T '#{downloaded_file}' #{repo_url}") puts "" end else puts "#{File.basename(source["url"])} exists in artifactory already...skipping" \ No newline at end of file