storeWorkflowVariables stores user-defined variables in outputs map for interpolation
(variables map[string]string)
| 1425 | |
| 1426 | // storeWorkflowVariables stores user-defined variables in outputs map for interpolation |
| 1427 | func (e *Executor) storeWorkflowVariables(variables map[string]string) { |
| 1428 | if len(variables) == 0 { |
| 1429 | return |
| 1430 | } |
| 1431 | |
| 1432 | e.outputMu.Lock() |
| 1433 | defer e.outputMu.Unlock() |
| 1434 | |
| 1435 | for name, value := range variables { |
| 1436 | e.outputs[name] = value |
| 1437 | e.logDebug("Stored workflow variable: %s = %s", name, value) |
| 1438 | } |
| 1439 | } |