// parseVariables extracts the first section of the yaml file that defines the variables which might be used in the later definition of tasks/steps
parseVariables extracts the first section of the yaml file that defines the variables which might be used in the later definition of tasks/steps
// parseVariables extracts the first section of the yaml file that defines the variables which might be used in the later definition of tasks / steps
func parseVariables(variablesYaml map[string]interface{}) (variables map[string]string, err error) {
	variables, err = getDefaultVariables()
	if err != nil {
		return variables, err
	}
	for key, value := range variablesYaml {
		expandedVariable, err := expandVariable(value.(string), variables)
		if err != nil {
			return variables, err
		}
		variables[key] = expandedVariable
	}
	return variables, nil
}
func parseVariables ( variablesYaml map [ string ] interface { } ) ( variables map [ string ] string , err error ) { variables , err = getDefaultVariables ( ) if err != nil { return variables , err } for key , value := range variablesYaml { expandedVariable , err := expandVariable ( value . ( string ) , variables ) if err != nil { return variables , err } variables [ key ] = expandedVariable } return variables , nil }
parseVariables extracts the first section of the yaml file that defines the variables which might be used in the later definition of tasks/steps
parseVariables extracts the first section of the yaml file that defines the variables which might be used in the later definition of tasks / steps
// Iterate all variables