#How can I get the Dagger Cloud URL programmatically?

1 messages · Page 1 of 1 (latest)

willow burrow
#

I'd like to print the URL at the opportune time in our own CI summary produce at the end of our massive Dagger pipeline.

Is there an SDK function or GQL query to grab it?

mellow steeple
willow burrow
#

no, Jenkins and dagger run

#

Also Bitbucket, if you were looking into adding code host widgets

#

Is there a way to get the dagger CLI to print the URL at the end ?

mellow steeple
# willow burrow Is there a way to get the dagger CLI to print the URL at the end ?

dagger run should alreay print the URL at the end before your program stdout.

✔ connect 0.2s
✔ cache request: mkfile /schema.json 0.0s
✔ load cache: mkfile /schema.json 0.0s
✔ cache request: blob://sha256:0af0193b47ac5352f6b40feb73a5644e1571e353149e6ee29542540c608e7a15 0.0s
✔ load cache: blob://sha256:0af0193b47ac5352f6b40feb73a5644e1571e353149e6ee29542540c608e7a15 0.0s
✔ container: Container! 0.0s
✔ Container.from(address: "alpine"): Container! 0.5s
✔ Container.withExec(args: ["echo", "Hello, World!"]): Container! 0.0s
✔ Container.stdout: String! 0.0s

Full trace at https://dagger.cloud/marcos-test/traces/880a2e913a6ab9c42d48b2c7900a1046

Hello, World!
 <nil>

IIUC you'd like to get this after your pipeline output?

willow burrow
#

yes, that would be correct

I'm also not seeing it after the dagger output and before our output, only at the very beginning

on v0.12.4 if it changed since then

mellow steeple
onyx thistle
willow burrow
#

yup! it appears to be there and matching the dagger printed url

mellow steeple