How to use the “Parameterized Remote Trigger” in a Jenkins script pipeline?

I tried the search but did not find any example. I tried https://jenkins.io/doc/pipeline/examples/#trigger-job-on-all-nodes and got this for different nodes on the same Jenkins. I would like to start building on another Jenkins. I configured remote hosts and authentication in my Jenkins system configuration. How to call a "Parameterized Remote Trigger" in a Jenkins script pipeline?

+4
source share
1 answer

This seems to be an open bug: https://issues.jenkins-ci.org/browse/JENKINS-38657

As a workaround, you can create another task of the locally old type and use the plugin in the old school non-pipelined script method. Then in your script pipeline, you simply run this task. I know this is an ugly adapter, but then you have a parameterizer for this adapter, and it works and works for almost everything :)

+5
source

Source: https://habr.com/ru/post/1666992/


All Articles