I am invoking a Jenkins job remotely using:
wget http://:8080/job/Test-Jenkins/build?token=DOIT
Here Test-Jenkins
To pass/use the variables, first create parameters in the configure section of Jenkins. Parameters that you use can be of type text, String, file, etc.
After creating them, use the variable reference in the fields you want to.
For example: I have configured/created two variables for Email-subject
and Email-recipentList
, and I have used their reference in the EMail-ext
plugin (attached screenshot).