Skip to content

Commit

Permalink
task(generate_single_concourse_pipeline_config): ensure pipeline are …
Browse files Browse the repository at this point in the history
…unpaused on load

Each pipeline managed by `concourse-pipeline.yml.erb` are automatically unpaused after being loaded to avoid manual ops.
  • Loading branch information
o-orand committed Aug 12, 2021
1 parent 1ed8a09 commit 2d9347a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def add_pipeline(name, team, config, vars_files)
pipeline['team'] = team || 'main'
pipeline['config_file'] = config
pipeline['vars_files'] = vars_files || []
@pipelines['pipelines']. << pipeline
@pipelines['pipelines'] << pipeline
end

def generate_vars_files(pipeline_name, root_deployment)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def initialize(base_dir = ".", config_dir = '', output_dir = '')
def execute
validate_dir
puts "execute"

# exit 1
pipelines = list_pipelines
puts pipelines
pipelines.each do |pipeline_config_filename|
Expand Down Expand Up @@ -48,6 +48,8 @@ def add_pipeline(name, team, config, vars_files)
pipeline['team'] = team || 'main'
pipeline['config_file'] = config
pipeline['vars_files'] = vars_files || []
pipeline['unpaused'] = true

@pipelines['pipelines']. << pipeline
end

Expand Down

0 comments on commit 2d9347a

Please sign in to comment.