#How can I get the Dagger Cloud URL programmatically?
1 messages · Page 1 of 1 (latest)
unfortunately there's not. Are you using GHA by any chance? Just wondering if you saw the support for GHA checks
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 ?
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?
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
yes, that changed recently IIRC
I had this module in the past before we introduced the URL to the TUI, this may still work -- @willow burrow do you see this env var set when you're running your pipeline?
https://github.com/levlaz/daggerverse/blob/main/cloud-utils/dagger/src/main/__init__.py
yup! it appears to be there and matching the dagger printed url
thx Lev, I thoguht about suggesting this as a stopgap but it seemed a bit too hacky to share 😬