-
Notifications
You must be signed in to change notification settings - Fork 1
Allow for overriding pipelines and private variable settings in the constructor arguments #1
Conversation
…onstructor arguments
Hi, @ebmeierj! Thanks so much for submitting this. I'd like to ask two questions ... The default behavior is to have an implicit name relationship between the ERB file and the final YML file. Without knowing more about your use case, I can't know for sure, but I'm curious if this is helpful in your case? For example, if I specify the ERB filename, would it be useful to have an intelligent default for the Second, I've been planning on adding the ability to manage multiple pipeline files for a single project. Currently I try to use Concourse groups for this (see https://ci.nokogiri.org/teams/nokogiri-core/pipelines/nokogiri for an example) but this UX is suboptimal when looking at the recently-added top-level dashboard (see https://ci.nokogiri.org/). So the alternative I've been pondering is to specify multiple pipelines (one for master, one for PRs, one for allow-fail, etc.). Does this more directly match your use case? And if so, would you like to collaborate on that with me? Thanks for reading, and thanks for submitting this PR! |
Ah, yes - the ability to change the relationship between the ERB file and the final YML file was not part of my use case. It would actually simplify my instantiation if the 'final' filename is a derivative of the erb filename. On a side note, I'm actually creating the 'final' file as a temp file for each 'set_pipeline' request so that I know that it is up to date. I'm not in love with that solution, but it's where I'm at for the time being. We are currently experimenting with creating a separate 'PR' pipeline for each feature branch. The result of that is that we will only have one pipeline be relevant for the current feature at a time. If this strategy works for us, I don't think the need to specify multiple pipelines will be necessary for us. But the honest answer is that I'm not sure yet. |
Oh, interesting. Have you seen the work that the Concourse team has been doing around Spatial Resources to address this use case?
Are you happy with the current relationship of |
I knew there was an Epic out there to address it - but I need this to be useful for us now and don't have any real expectations on when Spatial Resources will be available. It would definitely solve my problem more elegantly, though. I don't have any strong feelings on the current filename relationship. Personally, I'm creating the "final" file as a Tempfile in the set_pipeline task and removing it after the task completes. That way I don't have to remember to run |
Hm... it seems I missed that generate was a |
* fly_target * pipeline_erb_filename * secrets_filenam along with additional test coverage, README and CHANGELOG updates. related to #1
I ended up implementing this slightly differently than in this PR, but I've given you credit in the CHANGELOG. Will be in the next release. Please see README for how to use the new parameters. |
Our pipeline files do not necessarily match the defaults. It is helpful to allow us to override these defaults when constructing the concourse object.