How to trigger Jenkins builds remotely and to pass parameters

前端 未结 7 1486
傲寒
傲寒 2020-11-27 03:05

I am invoking a Jenkins job remotely using:

wget http://:8080/job/Test-Jenkins/build?token=DOIT

Here Test-Jenkins

相关标签:
7条回答
  • 2020-11-27 03:31

    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).

    Enter image description here

    0 讨论(0)
提交回复
热议问题