@@ -82,6 +82,7 @@ func (sf Sequence) Execute(confSvc ConfigurationService,
8282 parentPath string ,
8383 varStack VarStack ,
8484 buildObjectStack BuildObjectStackFunc ,
85+ baseConfigStack map [string ]string ,
8586 stringTemplateCache map [string ]template.Template ,
8687 workflowRepo repos.IRepo ,
8788 stageCallback StageCallbackFunc ) (err error ) {
@@ -110,7 +111,7 @@ func (sf Sequence) Execute(confSvc ConfigurationService,
110111 }(),
111112 }).Trace ("about to process fields for stage" )
112113 }
113- err = fields .Execute (confSvc , parentPath , stagedStack , objectStack , stringTemplateCache , workflowRepo )
114+ err = fields .Execute (confSvc , parentPath , stagedStack , objectStack , baseConfigStack , stringTemplateCache , workflowRepo )
114115 err = stageCallback (currentStage , err )
115116 if err != nil {
116117 var roleDisabledErrorType * RoleDisabledError
@@ -227,7 +228,7 @@ func (vs *VarStack) consolidated(stage Stage) (consolidatedStack map[string]stri
227228 return
228229}
229230
230- func (fields Fields ) Execute (confSvc ConfigurationService , parentPath string , varStack map [string ]string , objStack map [string ]interface {}, stringTemplateCache map [string ]template.Template , workflowRepo repos.IRepo ) (err error ) {
231+ func (fields Fields ) Execute (confSvc ConfigurationService , parentPath string , varStack map [string ]string , objStack map [string ]interface {}, baseConfigStack map [ string ] string , stringTemplateCache map [string ]template.Template , workflowRepo repos.IRepo ) (err error ) {
231232 environment := make (map [string ]interface {}, len (varStack ))
232233 strOpStack := MakeUtilFuncMap (varStack )
233234 for k , v := range varStack {
@@ -256,7 +257,7 @@ func (fields Fields) Execute(confSvc ConfigurationService, parentPath string, va
256257 environment [k ] = v
257258 }
258259
259- pluginObjects := MakePluginObjectStack (varStack )
260+ pluginObjects := MakePluginObjectStack (varStack , baseConfigStack )
260261 copyMap (pluginObjects , environment )
261262
262263 configAccessObj := MakeConfigAccessObject (confSvc , varStack )
0 commit comments