Skip to content

Instantly share code, notes, and snippets.

@hkdsun
Created October 30, 2020 11:55
Show Gist options
  • Save hkdsun/a70bd4a303fb4cb1aca426b82d50d45e to your computer and use it in GitHub Desktop.
Save hkdsun/a70bd4a303fb4cb1aca426b82d50d45e to your computer and use it in GitHub Desktop.
require 'json'
fixture = "test/fixtures/pipeline_multi_stage_by_region_with_custom_options.json"
pipelines = JSON.load(File.read(fixture))
pipelines.each do |p|
puts p['block'] if p['block']
puts p['name'] if p['name']
puts "WAIT STEP" if p['wait']
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment