Jenkins parameterized remote trigger plugin

Hello!

I’m trying to configure and use the Parameterized-Remote-Trigger plugging and failing terribly on it.

He have been using only one jenkins controller for a while and we wish now to split. However, we should be able to trigger jobs from one controller to the other.

In some jobs, we might need to wait until the job triggered on the remote cluster has finished, so the pipeline can continue, and some other cases we only want to trigger the remote jobs and not wait for the results.

So far, following these instructions on how to setup remote host for jenkins parameterized remote trigger plugin, and setting up very simple test jobs, I’m getting the error below. Can someone support to fix, or indicate another way to trigger remote builds?

16:23:02 Started by user bllc
16:23:02 Running as SYSTEM
16:23:02 [EnvInject] - Loading node environment variables.
16:23:02 Building remotely on builder (swarm) in workspace C:\workspace\Trigger_Jenkins_Remotely
16:23:02 ################################################################################################################
16:23:02   Parameterized Remote Trigger Configuration:
16:23:02     - job:                     test_trigger 
16:23:02     - remoteJenkinsName:       Secondary_Jenkins
16:23:02     - parameters:              {application=dummy}
16:23:02     - blockBuildUntilComplete: false
16:23:02     - connectionRetryLimit:    5
16:23:02     - trustAllCertificates:    true
16:23:02 ################################################################################################################
16:23:02 Connection to remote server failed [Unable to tunnel through proxy. Proxy returns "HTTP/1.1 503 Service Unavailable"], waiting to retry - 10 seconds until next attempt. URL: https://secondary_url/job/test_trigger/api/json, parameters: 
16:23:12 Retry attempt #1 out of 5
16:23:12 Connection to remote server failed [Unable to tunnel through proxy. Proxy returns "HTTP/1.1 503 Service Unavailable"], waiting to retry - 10 seconds until next attempt. URL: https://secondary_url/job/test_trigger/api/json, parameters: 
16:23:22 Retry attempt #2 out of 5
16:23:22 Connection to remote server failed [Unable to tunnel through proxy. Proxy returns "HTTP/1.1 503 Service Unavailable"], waiting to retry - 10 seconds until next attempt. URL: https://secondary_url/job/test_trigger/api/json, parameters: 
16:23:32 Retry attempt #3 out of 5
16:23:32 Connection to remote server failed [Unable to tunnel through proxy. Proxy returns "HTTP/1.1 503 Service Unavailable"], waiting to retry - 10 seconds until next attempt. URL: https://secondary_url/job/test_trigger/api/json, parameters: 
16:23:42 Retry attempt #4 out of 5
16:23:42 Connection to remote server failed [Unable to tunnel through proxy. Proxy returns "HTTP/1.1 503 Service Unavailable"], waiting to retry - 10 seconds until next attempt. URL: https://secondary_url/job/test_trigger/api/json, parameters: 
16:23:52 Retry attempt #5 out of 5
16:23:52 Connection to remote server failed [Unable to tunnel through proxy. Proxy returns "HTTP/1.1 503 Service Unavailable"], number of retries exceeded. URL: https://secondary_url/job/test_trigger/api/json, parameters: 
16:23:52 ERROR: Build step failed with exception
16:23:52 org.jenkinsci.plugins.ParameterizedRemoteTrigger.exceptions.ExceedRetryLimitException: Max number of connection retries have been exceeded.
16:23:52 	at PluginClassLoader for Parameterized-Remote-Trigger//org.jenkinsci.plugins.ParameterizedRemoteTrigger.utils.HttpHelper.sendHTTPCall(HttpHelper.java:550)
16:23:52 	at PluginClassLoader for Parameterized-Remote-Trigger//org.jenkinsci.plugins.ParameterizedRemoteTrigger.utils.HttpHelper.sendHTTPCall(HttpHelper.java:540)
16:23:52 	at PluginClassLoader for Parameterized-Remote-Trigger//org.jenkinsci.plugins.ParameterizedRemoteTrigger.utils.HttpHelper.sendHTTPCall(HttpHelper.java:540)
16:23:52 	at PluginClassLoader for Parameterized-Remote-Trigger//org.jenkinsci.plugins.ParameterizedRemoteTrigger.utils.HttpHelper.sendHTTPCall(HttpHelper.java:540)
16:23:52 	at PluginClassLoader for Parameterized-Remote-Trigger//org.jenkinsci.plugins.ParameterizedRemoteTrigger.utils.HttpHelper.sendHTTPCall(HttpHelper.java:540)
16:23:52 	at PluginClassLoader for Parameterized-Remote-Trigger//org.jenkinsci.plugins.ParameterizedRemoteTrigger.utils.HttpHelper.sendHTTPCall(HttpHelper.java:540)
16:23:52 	at PluginClassLoader for Parameterized-Remote-Trigger//org.jenkinsci.plugins.ParameterizedRemoteTrigger.utils.HttpHelper.tryCall(HttpHelper.java:584)
16:23:52 	at PluginClassLoader for Parameterized-Remote-Trigger//org.jenkinsci.plugins.ParameterizedRemoteTrigger.utils.HttpHelper.tryGet(HttpHelper.java:606)
16:23:52 	at PluginClassLoader for Parameterized-Remote-Trigger//org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.doGet(RemoteBuildConfiguration.java:883)
16:23:52 	at PluginClassLoader for Parameterized-Remote-Trigger//org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.getRemoteJobMetadata(RemoteBuildConfiguration.java:1060)
16:23:52 	at PluginClassLoader for Parameterized-Remote-Trigger//org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.performTriggerAndGetQueueId(RemoteBuildConfiguration.java:606)
16:23:52 	at PluginClassLoader for Parameterized-Remote-Trigger//org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.perform(RemoteBuildConfiguration.java:571)
16:23:52 Caused: java.lang.RuntimeException
16:23:52 	at PluginClassLoader for Parameterized-Remote-Trigger//org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.perform(RemoteBuildConfiguration.java:577)
16:23:52 	at PluginClassLoader for Parameterized-Remote-Trigger//org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.perform(RemoteBuildConfiguration.java:537)
16:23:52 	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
16:23:52 	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
16:23:52 	at hudson.model.Build$BuildExecution.build(Build.java:199)
16:23:52 	at hudson.model.Build$BuildExecution.doRun(Build.java:164)
16:23:52 	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526)
16:23:52 	at hudson.model.Run.execute(Run.java:1894)
16:23:52 	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
16:23:52 	at hudson.model.ResourceController.execute(ResourceController.java:101)
16:23:52 	at hudson.model.Executor.run(Executor.java:446)
16:23:52 Build step 'Trigger a remote parameterized job' marked build as failure
16:23:52 Finished: FAILURE

Jenkins setup:

Jenkins: 2.462.2
OS: Linux - 4.18.0-553.46.1.el8_10.x86_64
Java: 17.0.12 - Eclipse Adoptium (OpenJDK 64-Bit Server VM)
---
Parameterized-Remote-Trigger:3.2.1
PrioritySorter:5.1.0
active-directory:2.37
ant:511.v0a_a_1a_334f41b_
antisamy-markup-formatter:162.v0e6ec0fcfcf6
apache-httpcomponents-client-4-api:4.5.14-208.v438351942757
artifactory:4.0.8
asm-api:9.7-33.v4d23ef79fcc8
authentication-tokens:1.119.v50285141b_7e1
azure-credentials:312.v0f3973cd1e59
azure-keyvault:251.vcfe31c013dc7
azure-sdk:174.va_89c1df897d2
basic-branch-build-strategies:81.v05e333931c7d
bitbucket:254.v9d8ec33a_7a_42
blueocean:1.27.16
blueocean-autofavorite:1.2.5
blueocean-bitbucket-pipeline:1.27.16
blueocean-commons:1.27.16
blueocean-config:1.27.16
blueocean-core-js:1.27.16
blueocean-dashboard:1.27.16
blueocean-display-url:2.4.3
blueocean-events:1.27.16
blueocean-git-pipeline:1.27.16
blueocean-github-pipeline:1.27.16
blueocean-i18n:1.27.16
blueocean-jira:1.27.16
blueocean-jwt:1.27.16
blueocean-personalization:1.27.16
blueocean-pipeline-api-impl:1.27.16
blueocean-pipeline-editor:1.27.16
blueocean-pipeline-scm-api:1.27.16
blueocean-rest:1.27.16
blueocean-rest-impl:1.27.16
blueocean-web:1.27.16
bootstrap5-api:5.3.3-1
bouncycastle-api:2.30.1.78.1-248.ve27176eb_46cb_
branch-api:2.1178.v969d9eb_c728e
build-failure-analyzer:2.5.2
build-monitor-plugin:1.14-925.v95b_9089a_4c7f
build-name-setter:2.4.3
build-timeout:1.33
caffeine-api:3.1.8-133.v17b_1ff2e0599
checks-api:2.2.1
cloudbees-bitbucket-branch-source:888.v8e6d479a_1730
cloudbees-folder:6.955.v81e2a_35c08d3
command-launcher:115.vd8b_301cc15d0
commons-compress-api:1.26.1-2
commons-lang3-api:3.17.0-84.vb_b_938040b_078
commons-text-api:1.12.0-129.v99a_50df237f7
conditional-buildstep:1.4.3
config-file-provider:980.v88956a_a_5d6a_d
configuration-as-code:1850.va_a_8c31d3158b_
configuration-as-code-groovy:1.1
copyartifact:757.v05365583a_455
credentials:1380.va_435002fa_924
credentials-binding:681.vf91669a_32e45
dashboard-view:2.517.v776a_b_811a_b_4e
data-tables-api:2.1.8-1
display-url-api:2.204.vf6fddd8a_8b_e9
docker-commons:443.v921729d5611d
docker-workflow:580.vc0c340686b_54
durable-task:577.v2a_8a_4b_7c0247
echarts-api:5.5.1-4
eddsa-api:0.3.0-4.v84c6f0f4969e
email-ext:1844.v3ea_a_b_842374a_
envinject:2.919.v009a_a_1067cd0
envinject-api:1.199.v3ce31253ed13
external-monitor-job:215.v2e88e894db_f8
favorite:2.221.v19ca_666b_62f5
flexible-publish:0.16.1
font-awesome-api:6.6.0-2
generic-webhook-trigger:2.2.5
git:5.5.1
git-client:5.0.0
git-server:126.v0d945d8d2b_39
github:1.40.0
github-api:1.321-468.v6a_9f5f2d5a_7e
github-branch-source:1797.v86fdb_4d57d43
google-login:109.v022b_cf87b_e5b_
gradle:2.13.1
groovy:457.v99900cb_85593
gson-api:2.11.0-41.v019fcf6125dc
handy-uri-templates-2-api:2.1.8-30.v7e777411b_148
hidden-parameter:237.v4b_df26c7a_f0e
htmlpublisher:1.36
instance-identity:201.vd2a_b_5a_468a_a_6
ionicons-api:74.v93d5eb_813d5f
ivy:2.6
jackson2-api:2.17.0-379.v02de8ec9f64c
jakarta-activation-api:2.1.3-1
jakarta-mail-api:2.1.3-1
javadoc:280.v050b_5c849f69
javax-activation-api:1.2.0-7
javax-mail-api:1.6.2-10
jaxb:2.3.9-1
jdk-tool:80.v8a_dee33ed6f0
jenkins-design-language:1.27.16
jersey2-api:2.44-151.v6df377fff741
jira:3.13
jjwt-api:0.11.5-112.ve82dfb_224b_a_d
jnr-posix-api:3.1.19-2
job-dsl:1.89
job-restrictions:0.8
jobConfigHistory:1283.veb_dfb_00b_5ec0
joda-time-api:2.13.0-85.vb_64d1c2921f1
jquery:1.12.4-1
jquery3-api:3.7.1-2
jsch:0.2.16-86.v42e010d9484b_
json-api:20240303-41.v94e11e6de726
json-path-api:2.9.0-58.v62e3e85b_a_655
junit:1307.vdd5b_2646279e
klocwork:2023.3.1
ldap:725.v3cb_b_711b_1a_ef
locale:519.v4e20f313cfa_f
lockable-resources:1315.v4ea_8e5159ec8
mailer:472.vf7c289a_4b_420
markdown-formatter:225.v859f46dea_3b_5
matrix-auth:3.2.3
matrix-project:832.va_66e270d2946
maven-plugin:3.23
mercurial:1260.vdfb_723cdcc81
metrics:4.2.21-451.vd51df8df52ec
mina-sshd-api-common:2.14.0-133.vcc091215a_358
mina-sshd-api-core:2.14.0-133.vcc091215a_358
monitoring:1.99.0
nodelabelparameter:1.12.0
okhttp-api:4.11.0-172.vda_da_1feeb_c6e
pam-auth:1.11
parameterized-trigger:806.vf6fff3e28c3e
pipeline-agent-build-history:90.vf089ff0feff9
pipeline-build-step:540.vb_e8849e1a_b_d8
pipeline-github-lib:61.v629f2cc41d83
pipeline-graph-analysis:216.vfd8b_ece330ca_
pipeline-groovy-lib:744.v5b_556ee7c253
pipeline-input-step:495.ve9c153f6067b_
pipeline-milestone-step:119.vdfdc43fc3b_9a_
pipeline-model-api:2.2214.vb_b_34b_2ea_9b_83
pipeline-model-definition:2.2214.vb_b_34b_2ea_9b_83
pipeline-model-extensions:2.2214.vb_b_34b_2ea_9b_83
pipeline-rest-api:2.34
pipeline-stage-step:312.v8cd10304c27a_
pipeline-stage-tags-metadata:2.2214.vb_b_34b_2ea_9b_83
pipeline-stage-view:2.34
pipeline-utility-steps:2.17.0
plain-credentials:183.va_de8f1dd5a_2b_
plugin-util-api:5.1.0
powershell:2.1
pretested-integration:3.1.2
prism-api:1.29.0-17
pubsub-light:1.18
rebuild:332.va_1ee476d8f6d
resource-disposer:0.24
robot:4.0.0
run-condition:1.7
scm-api:696.v778d637b_a_762
script-security:1369.v9b_98a_4e95b_2d
skip-notifications-trait:313.vd1337c8f8134
slack:741.v00f9591c586d
snakeyaml-api:2.3-123.v13484c65210a_
sse-gateway:1.27
ssh-agent:376.v8933585c69d3
ssh-credentials:343.v884f71d78167
ssh-slaves:2.973.v0fa_8c0dea_f9f
sshd:3.330.vc866a_8389b_58
stashNotifier:1.507.vb_7300a_1a_a_d10
structs:338.v848422169819
swarm:3.47
test-results-analyzer:0.4.1
text-finder:1.29
throttle-concurrents:2.14
timestamper:1.27
token-macro:400.v35420b_922dcb_
trilead-api:2.147.vb_73cc728a_32e
variant:60.v7290fc0eb_b_cd
workflow-aggregator:600.vb_57cdd26fdd7
workflow-api:1336.vee415d95c521
workflow-basic-steps:1058.vcb_fc1e3a_21a_9
workflow-cps:3990.vd281dd77a_388
workflow-durable-task-step:1371.vb_7cec8f3b_95e
workflow-job:1436.vfa_244484591f
workflow-multibranch:795.ve0cb_1f45ca_9a_
workflow-scm-step:427.v4ca_6512e7df1
workflow-step-api:678.v3ee58b_469476
workflow-support:926.v9f4f9b_b_98c19
ws-cleanup:0.46

Do you need to go via a proxy to reach the other Jenkins instance? If not you might need to add corresponding exception to the proxy configuration in Jenkins (assuming the plugin makes use of that config)