> Job Env Variable: RELEASE = ${GLOBAL_RELEASE} > Label Template ${env:RELEASE}.${COUNT}
The label template is at the scope of the *entire pipeline* *run*, in the way it is displayed in the UI :-) By definition it cannot know about anything defined at a lower job level as it applies to the entire pipeline run (all stages, all jobs, all tasks). You should be able to refer to GLOBAL_RELEASE, but definitely not a job environment variable. (I'm also not sure from memory that env var interpolation is support like you are doing for the job env) https://docs.gocd.org/current/configuration/pipeline_labeling.html#using-pipeline-level-environment-variables https://docs.gocd.org/current/faq/dev_use_current_revision_in_build.html Perhaps you can share what you're trying to achieve with the labels, and we could suggest an alternative approach? On Fri, Oct 18, 2024 at 8:50 AM Sharat Gunnala <sharatgunn...@gmail.com> wrote: > I am trying to set Environment Variables to Job Environment Variables and > then use to label the run and build artifact. > Env Var : GLOBAL_RELEASE = X.X.X > Job Env Variable: RELEASE = ${GLOBAL_RELEASE} > Label Template ${env:RELEASE}.${COUNT} > This settings doesn't work as expected and values don't get replaced. any > ideas? > > -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/go-cd/fbca3c18-46c2-431f-8566-9a3fd9ea1d4cn%40googlegroups.com > <https://groups.google.com/d/msgid/go-cd/fbca3c18-46c2-431f-8566-9a3fd9ea1d4cn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/CAA1RwH856ezMy6h3CK5SEgrqTCSWuJdg_RO2PqWoLBSatWfSUw%40mail.gmail.com.