Complete cleanup stage workstream

This commit is contained in:
2026-09-05 15:42:00 +00:00
parent 078f661e3a
commit c2806a1615
6 changed files with 87 additions and 13 deletions

View File

@@ -91,10 +91,10 @@ func validateCleanupPublishPolicy(cfg *PipelineConfig) error {
return nil
}
if cfg.Publish == nil || (cfg.Publish.Enabled != nil && !*cfg.Publish.Enabled) {
return fmt.Errorf("post-publish cleanup policies require pipeline.publish.enabled=true")
return fmt.Errorf("cleanup stage policies require pipeline.publish.enabled=true")
}
if cfg.Publish.UploadRun != nil && !*cfg.Publish.UploadRun {
return fmt.Errorf("post-publish cleanup policies require pipeline.publish.upload_run=true")
return fmt.Errorf("cleanup stage policies require pipeline.publish.upload_run=true")
}
return nil
}