A
A
Antony2019-08-15 12:22:07
Jenkins
Antony, 2019-08-15 12:22:07

How to add global variables inside global variables in Jenkins?

Actually what I have:
There are 3 global variables (Which are set via the Configure system)
For example:

Val1: "A"
Val2: "B"
Val3: "%Val1%%Val2%"

Somewhere I use %Val3% and I see in the console that %Val1%%Val2% is put there.
Actually two questions:
1. Is it a bug or a feature?
2. How can I do what I have planned?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Karasik, 2019-08-16
@RiseOfDeath

Not 100% sure but try
Val3 = "${Val1}${Val2}"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question