Skip to content

Commit 1a53e8f

Browse files
authored
Merge pull request #332 from aws/1.4.0-release
1.4.0 release
2 parents 429dfe8 + 83a1f45 commit 1a53e8f

27 files changed

+611
-859
lines changed

Diff for: Rakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ require 'rake/packagetask'
33
require 'rake/testtask'
44
require 'rspec/core/rake_task'
55
require 'rubygems'
6-
require 'yaml'
6+
require 'cucumber'
77

88
# Run all units tests in test/
99
desc "Run unit tests in test/"

Diff for: bin/codedeploy-local

+2-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ Options
6565
The format of the application revision bundle. Supported types include tgz, tar, zip, and directory. If you do not specify a type, the tool uses directory by default. If you specify --type, you must also specify --bundle-location. [default: directory]
6666
6767
-b, --file-exists-behavior <value>
68-
Indicates how files are handled that already exist in a deployment target location but weren't part of a previous successful deployment. Options include DISALLOW, OVERWRITE, RETAIN. [default: #{InstanceAgent::Plugins::CodeDeployPlugin::DeploymentSpecification::DEFAULT_FILE_EXISTS_BEHAVIOR}].
68+
Indicates how files are handled that already exist in a deployment target location but weren't part of a previous successful deployment. Options include DISALLOW, OVERWRITE, RETAIN. [default: #{InstanceAgent::Plugins::CodeDeployPlugin::DeploymentSpecification::DEFAULT_FILE_EXISTS_BEHAVIOR}].
69+
Note: this setting can be overriden during individual deployments using the appspec file, which takes precedence over this option setting during that deployment installation.
6970
See also: "create-deployment" in the AWS CLI Reference for AWS CodeDeploy.
7071
7172
-g, --deployment-group <value>

Diff for: bin/install

+13-4
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ EOF
397397
package_file.write(s3.read)
398398
end
399399
rescue *exceptions => e
400-
@log.error("Could not find package to download at '#{uri.to_s}' - Retrying... Attempt: '#{retries.to_s}'")
400+
@log.warn("Could not find package to download at '#{uri.to_s}' - Retrying... Attempt: '#{retries.to_s}'")
401401
if (retries < 5)
402402
sleep 2 ** retries
403403
retries += 1
@@ -415,14 +415,23 @@ end
415415
uri = s3_bucket.object_uri(key)
416416
@log.info("Endpoint: #{uri}")
417417

418+
retries ||= 0
419+
exceptions = [OpenURI::HTTPError, OpenSSL::SSL::SSLError, Errno::ETIMEDOUT]
418420
begin
419421
require 'json'
420422

421423
version_string = uri.read(:ssl_verify_mode => OpenSSL::SSL::VERIFY_PEER, :redirect => true, :read_timeout => 120, :proxy => @http_proxy)
422424
JSON.parse(version_string)
423-
rescue OpenURI::HTTPError => e
424-
@log.error("Could not find version file to download at '#{uri.to_s}'")
425-
exit(1)
425+
rescue *exceptions => e
426+
@log.warn("Could not find version file to download at '#{uri.to_s}' - Retrying... Attempt: '#{retries.to_s}'")
427+
if (retries < 5)
428+
sleep 2 ** retries
429+
retries += 1
430+
retry
431+
else
432+
@log.error("Could not download CodeDeploy Agent version file. Exiting Install script.")
433+
exit(1)
434+
end
426435
end
427436
end
428437

0 commit comments

Comments
 (0)