Use the same environment variables that the `az` command line uses
This commit is contained in:
parent
25bd74d25f
commit
9cf990aeaa
|
@ -3,9 +3,14 @@
|
|||
require 'set'
|
||||
require 'azure/storage'
|
||||
|
||||
# NOTE: Be sure to set the environment variables:
|
||||
# export AZURE_STORAGE_ACCOUNT = <your azure storage account name>
|
||||
# export AZURE_STORAGE_KEY = <your azure storage access key>
|
||||
|
||||
BASE_DIR = '/srv/releases/jenkins/'
|
||||
|
||||
client = Azure::Storage::Client.create
|
||||
client = Azure::Storage::Client.create(:storage_account_name => ENV['AZURE_STORAGE_ACCOUNT'],
|
||||
:storage_access_key => ENV['AZURE_STORAGE_KEY'])
|
||||
blobs = client.blob_client
|
||||
|
||||
blobs.list_containers.each do |container|
|
||||
|
|
Loading…
Reference in New Issue