-
Bug
-
Resolution: Fixed
-
Major
-
None
My remote job has a single string parameter with a default value but when I attempt to trigger it using this plugin I get this error:
Triggering this remote job: remote-job Not checking if the remote job remote-job is building. This job is build #[1522] on the remote server. Triggering remote job now. ERROR: Remote build failed for the following reason, but the build will continue: ERROR: Server returned HTTP response code: 400 for URL: http://remote.jenkins.server/job/remote-job/build?delay=0 Not blocking local job until remote job completes - fire and forget.
The problem is /build is used instead of /buildWithParameters
This plugin needs to use the job api to check if there are parameters and call /buildWithParameters even if the caller did not specify any parameters (the caller expects the default value to be used)
WORKAROUND:
Have the caller set a bogus parameter to make the plugin use /buildWithParameters, eg. WORKAROUND_JENKINS_22493=true