Repository navigation
[Pipelines] Added scheduled pipelines for Subcription & Management-Group Deployment removals - #2305
Alexander Sehr (AlexanderSehr) wants to merge 31 commits into
Conversation
Users/alsehr/iteration
| # Deployments are only moved if they are not running or failed - AND - if they are not older than the below threshold | ||
| daysToKeepDeploymentsFor: 14 |
There was a problem hiding this comment.
This may be misleading for 2 reasons:
- It is not clear we're talking about a dedicated pipeline and not about the removal step of the module validation pipeline
- The variable name suggests we're keeping all deployments unless older than 14 days. If I understood correctly, it would be
| # Deployments are only moved if they are not running or failed - AND - if they are not older than the below threshold | |
| daysToKeepDeploymentsFor: 14 | |
| # A scheduled pipeline deletes subscription and (optionally) management group level deployments which are neither in a running nor in a failed state. I addition, failed deployments are also removed if they are older than the below threshold | |
| daysToKeepFailedDeploymentsFor: 14 |
There was a problem hiding this comment.
Yes and no. We decided to keep 'running' & 'failed' deployments. There could potentially be more states (e.g. canceled, creating, deleting, failed, succeeded, updating) and the function would allow you to specify them.
I get your point with the ask for a more meaningful name, but would suggest to not include any specifics like that. Maybe we can turn it on its head and use something like maxDeploymentRetentionInDays? What I try to express is, that beyond this point deployments are always deleted. Not 'just' failed ones, but all.
There was a problem hiding this comment.
I agree, neither are correct. Your latest suggestion is going in the right direction though. What I'd like to avoid is the wrong message for which we're deleting all deployments as part of the module validation pipeline and only after 14 days, which is what I would think by looking at the current name. To clarify which pipeline the setting is for, what would you think about adding different sections, e.g., general settings (if shared by all), module validation pipeline settings, platform maintenance settings?
There was a problem hiding this comment.
I guess we somewhat have these 'sections' already indicated by prefixes like Publish: xzy for a section header. I guess the fundamental 2 sections are Common & Azure DevOps only and I guess we should keep that. So whatever we do - it would be subsections and at least for me it would be fine to continue using these prefixes in the 'correct' order. Currently for example validation followed by removal and eventuall publish. Creative ideas are welcome :D
There was a problem hiding this comment.
I now introduced a section 'Platform pipeline settings'. What do you think? Figured 'removal' is probably a bit misleading as it could be mixed up with the module removal.
Description
settings.yml)Pipeline references
Type of Change
Please delete options that are not relevant.