diff --git a/relay/engines/env_builder.go b/relay/engines/env_builder.go index a4fc2b7..57b2d83 100644 --- a/relay/engines/env_builder.go +++ b/relay/engines/env_builder.go @@ -38,6 +38,7 @@ func BuildEnvironment(request messages.ExecutionRequest, relayConfig config.Conf vars["COG_CHAT_HANDLE"] = request.Requestor.Handle vars["COG_PIPELINE_ID"] = request.PipelineID() vars["COG_SERVICE_TOKEN"] = request.ServiceToken + vars["COG_SERVICES_ROOT"] = request.ServicesRoot vars["COG_INVOCATION_ID"] = request.InvocationID if request.InvocationStep != "" { diff --git a/relay/messages/execution.go b/relay/messages/execution.go index 97d8b7b..5af8a06 100644 --- a/relay/messages/execution.go +++ b/relay/messages/execution.go @@ -18,6 +18,7 @@ type ExecutionRequest struct { Requestor ChatUser `json:"requestor"` User CogUser `json:"user"` ServiceToken string `json:"service_token"` + ServicesRoot string `json:"services_root"` bundleName string commandName string pipelineID string