shall i print resource name form enviroemtn

12 views
Skip to first unread message

Nayan Makwana

unread,
Aug 8, 2022, 12:26:47 AM8/8/22
to go-cd
I want to print resource name in console so user can know the pipeline running on particular resource . 


if it possible so please let me know how can i do that

regard
Nayan Makwana

Chad Wilson

unread,
Aug 8, 2022, 12:40:16 AM8/8/22
to go...@googlegroups.com
If you look at the expanded console log for a build, only the values in the process environment (the ones listed with "setting environment variable") are available. I don't think the "GoCD resources" tagged to the current agent are available, only the "GoCD environment" name (if relevant).

Believe these are listed at https://docs.gocd.org/current/faq/dev_use_current_revision_in_build.html#standard-gocd-environment-variables as well.

--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/dc83b92c-a55a-429f-bb4f-2c5bd12cb5e1n%40googlegroups.com.

Nayan Makwana

unread,
Aug 8, 2022, 12:41:44 AM8/8/22
to go-cd
thank you chad it will helpful
Reply all
Reply to author
Forward
0 new messages