Commit 2339306d authored by Grzegorz Bizon's avatar Grzegorz Bizon

Improve matching kubernetes job in CI/CD processor

parent 9eabd723
......@@ -48,9 +48,9 @@ module Ci
only_kubernetes = job.dig(:only, :kubernetes)
except_kubernetes = job.dig(:except, :kubernetes)
[!only_kubernetes & !except_kubernetes,
only_kubernetes & has_kubernetes,
except_kubernetes & !has_kubernetes].any?
[!only_kubernetes && !except_kubernetes,
only_kubernetes && has_kubernetes,
except_kubernetes && !has_kubernetes].any?
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment