Downloads a pipeline source file and returns it as a UTF-8 string.
This is a convenience wrapper around pipelineFile_getByPath() that converts the Buffer to a string. Suitable for YAML/text files.
pipelineFile_getByPath()
The full path to the pipeline file, e.g., /PIPELINES/user/pipeline.yml
A Result containing the file content as a string, or an error.
const result = await pipelineFile_getTextByPath('/PIPELINES/user/config.yml');if (result.ok) { const yamlContent: string = result.value; // Parse YAML content} Copy
const result = await pipelineFile_getTextByPath('/PIPELINES/user/config.yml');if (result.ok) { const yamlContent: string = result.value; // Parse YAML content}
Downloads a pipeline source file and returns it as a UTF-8 string.
This is a convenience wrapper around
pipelineFile_getByPath()that converts the Buffer to a string. Suitable for YAML/text files.