Skip to content

Multiple Outputs Support #15

@vz250049

Description

@vz250049

First off, this is really good stuff here.

Tried code with multiple outputs and it seems to negate both when I do it. 2 places where I call writeOutput hoping to set outputs and I get errors. See below.

outputs:
  result1:
    description: Rendered file content1
 result2:
   description: Rendered file content2

Changed function to:
func writeOutput(name string, output string) error {...}

"Error! {\"statusCode\":200,\"statusMessage\":\"OK\",\"ok\":false,\"result\":\"{\\\"ok\\\":false,\\\"error\\\":\\\"invalid_blocks\\\",\\\"errors\\\":[\\\"failed to match all allowed schemas [json-pointer:/blocks/2/text]\\\",\\\"must be more than 0 characters [json-pointer:/blocks/2/text/text]\\\"],\\\"response_metadata\\\":{\\\"messages\\\":[\\\"[ERROR] failed to match all allowed schemas [json-pointer:/blocks/2/text]\\\",\\\"[ERROR] must be more than 0 characters [json-pointer:/blocks/2/text/text]\\\"]}}\",\"response\":{\"ok\":false,\"error\":\"invalid_blocks\",\"errors\":[\"failed to match all allowed schemas [json-pointer:/blocks/2/text]\",\"must be more than 0 characters [json-pointer:/blocks/2/text/text]\"],\"response_metadata\":{\"messages\":[\"[ERROR] failed to match all allowed schemas [json-pointer:/blocks/2/text]\",\"[ERROR] must be more than 0 characters [json-pointer:/blocks/2/text/text]\"]}}} (response)"Show less
--
build-and-push-to-gcrUnable to process file command 'output' successfully.
build-and-push-to-gcrInvalid value. EOF marker missing new line.

"Error! {\"statusCode\":200,\"statusMessage\":\"OK\",\"ok\":false,\"result\":\"{\\\"ok\\\":false,\\\"error\\\":\\\"invalid_blocks\\\",\\\"errors\\\":[\\\"failed to match all allowed schemas [json-pointer:/blocks/2/text]\\\",\\\"must be more than 0 characters [json-pointer:/blocks/2/text/text]\\\"],\\\"response_metadata\\\":{\\\"messages\\\":[\\\"[ERROR] failed to match all allowed schemas [json-pointer:/blocks/2/text]\\\",\\\"[ERROR] must be more than 0 characters [json-pointer:/blocks/2/text/text]\\\"]}}\",\"response\":{\"ok\":false,\"error\":\"invalid_blocks\",\"errors\":[\"failed to match all allowed schemas [json-pointer:/blocks/2/text]\",\"must be more than 0 characters [json-pointer:/blocks/2/text/text]\"],\"response_metadata\":{\"messages\":[\"[ERROR] failed to match all allowed schemas [json-pointer:/blocks/2/text]\",\"[ERROR] must be more than 0 characters [json-pointer:/blocks/2/text/text]\"]}}} (response)"
[build-and-push-to-gcr](https://github.com/ncr-bsp/docker-java/actions/runs/6513226036/job/17692415054#step:7:28)
Unable to process file command 'output' successfully.
[build-and-push-to-gcr](https://github.com/ncr-bsp/docker-java/actions/runs/6513226036/job/17692415054#step:7:29)
Invalid value. EOF marker missing new line.

can you help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions