Although, we can get it using the env.getEnvironment() array, but it
doesn't have ${WORKSPACE} variable.Regards, Venkatesh On Wed, Dec 16, 2020 at 6:16 PM Ven H <[email protected]> wrote: > Hi, > > We have special Built-In Jenkins Variables for a Job like ${JOB_NAME}, > ${JOB_URL}, ${BUILD_NUMBER} etc, which can be accessed inside a Pipeline > script (both Scripted and Declarative). Although, we can use these > variables directly, I would like to know whether these are a part of an > Array variable like env, so that I can use it to loop and get the variables > instead of referencing them specifically using their names. I want to use > this array inside my pipeline. It will be helpful, if someone can also > provide an example. I tried searching a lot and also tried various ways, > but couldn't find anything. Please help. > > Regards, > Venkatesh > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPp28erX-njRk0xt6eERcPMteFtLx8%3Dr59Ej6TsNDs_CuFNVcA%40mail.gmail.com.
