Sha256: 1ff4eef59d5d649fdca92593dd93e60bc7d06fd9bcff603ad5eeeffd8ed9a9cd
Contents?: true
Size: 751 Bytes
Versions: 5
Compression:
Stored size: 751 Bytes
Contents
# frozen_string_literal: true common = load 'common_pipeline.rb' resource :timer, :time do source[:interval] = '30m' end # Borrow any git resources defined in common git_resources = common.resources.select { |_name, r| r.type == :git } merge_components git_resources job 'Just borrowing the git resource' do git_names = git_resources.keys gets = git_names.map { |name| { get: name } } gets << { get: :timer, trigger: true } plan [in_parallel: gets] task = { task: 'ls all the gits', config: { platform: 'linux', inputs: [name: :rudder_git], image_resource: { type: 'docker-image', source: { repository: 'busybox' } }, run: { path: 'ls', args: git_names } } } plan << task end
Version data entries
5 entries across 5 versions & 1 rubygems