#No stdout from WithExec.Stdout()

1 messages · Page 1 of 1 (latest)

hot owl
#
    deploy := params.Client.Pipeline("deploy").
        Container().
        From("docker.cloudsmith.io/foobar/foobar/levant:0.3.2").
        WithMountedDirectory("/deploy", hostSrcDir).
        WithWorkdir("/deploy").
        WithEnvVariable("NOMAD_ADDR", store.NomadAddr).
        WithSecretVariable("NOMAD_TOKEN", nomadTokenSecret).
        WithSecretVariable(cloudsmithDLTokenName, cloudsmithDLTokenSecret).
        WithExec(cmd)

    out, err := deploy.Stdout(context.Background())
    if err != nil {
        return err
    }
    fmt.Println(out)

The fmt.Println(out) call returns <nil> and I'm really not sure why. Thoughts?

#

The experimental TUI gets the correct output.

drifting briar
#

Have you checked if the output is effectively Stdout and not stderr?