Skip to content

Commit

Permalink
Do not attempt to delete docker iimages if docker not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
realityforge committed Jan 23, 2017
1 parent 079d166 commit c10a6e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/buildr_plus/features/ci.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def perform_publish?
package_actions = %w(ci:setup)
package_no_test_actions = %w(ci:no_test_setup)

if BuildrPlus::FeatureManager.activated?(:redfish)
if BuildrPlus::FeatureManager.activated?(:redfish) && BuildrPlus::FeatureManager.activated?(:docker)
Redfish.domains.each do |domain|
next unless domain.enable_rake_integration?
next unless domain.dockerize?
Expand Down Expand Up @@ -236,7 +236,7 @@ def perform_publish?
package_no_test_actions << 'ci:upload'
end

if BuildrPlus::FeatureManager.activated?(:redfish)
if BuildrPlus::FeatureManager.activated?(:redfish) && BuildrPlus::FeatureManager.activated?(:docker)
Redfish.domains.each do |domain|
next unless domain.enable_rake_integration?
next unless domain.dockerize?
Expand Down

0 comments on commit c10a6e9

Please sign in to comment.