Use derived artifact catalogs throughout planning and execution
This commit is contained in:
@@ -20,6 +20,15 @@ type Config struct {
|
||||
ArtifactCatalog *ArtifactCatalog
|
||||
}
|
||||
|
||||
// ConcreteArtifacts returns the invocation's derived artifact definitions.
|
||||
// Callers consume the catalog without modifying it.
|
||||
func (cfg *Config) ConcreteArtifacts() map[string]ScriptoriumArtifactConfig {
|
||||
if cfg == nil || cfg.ArtifactCatalog == nil {
|
||||
return nil
|
||||
}
|
||||
return cfg.ArtifactCatalog.Artifacts
|
||||
}
|
||||
|
||||
// PipelineConfig contains durable pipeline-level settings.
|
||||
type PipelineConfig struct {
|
||||
Workspace WorkspaceConfig `yaml:"workspace" json:"workspace"`
|
||||
|
||||
Reference in New Issue
Block a user