Unfortunately, I'm also asking a kind of similar question: - https://groups.google.com/forum/#!topic/jenkinsci-users/9UYN8FZL35k
I haven't worked out how to do it without creating variables specifically per stage -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ce3fbe5c-df26-471c-a804-1d6643650b9b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.