[英]not able to use jenkins Parameterized Remote Trigger Plugin
I have set up the plugin with reference from Parameterized Remote Trigger Plugin. 我已经参数化的远程触发插件参考设置了插件。 However I am getting these logs:
但是我得到这些日志:
Triggering this remote job: remoteJob
Not checking if the remote job remoteJob is building.
Triggering remote job now.
Remote Jenkins server returned empty response or invalid JSON - but we can still proceed with the remote build.
Checking parameters of #2
Remote Jenkins server returned empty response or invalid JSON - but we can still proceed with the remote build.
Query failed.
Checking parameters of #1
Checking parameters of #3
Remote Jenkins server returned empty response or invalid JSON - but we can still proceed with the remote build.
Query failed.
Checking parameters of #0
Remote Jenkins server returned empty response or invalid JSON - but we can still proceed with the remote build.
Query failed.
I am able to trigger the remote job but not able to determine it's status. 我能够触发远程作业但无法确定其状态。 My requirement is to trigger this remote job(remoteJob) on jenkins-B from jenkins-A and get it's build status on jenkins-A so that I can take action based on status.
我的要求是从jenkins-A触发jenkins-B上的这个远程作业(remoteJob),并在jenkins-A上获取它的构建状态,以便我可以根据状态采取行动。
As a workaround, I am using a python script using jenkins REST APIs to trigger and get build status from a remote jenkins server. 作为一种解决方法,我使用一个使用jenkins REST API的python脚本来触发并从远程jenkins服务器获取构建状态。 First determine if build is queued using
<jenkins_url>/queue/api/json
API. 首先使用
<jenkins_url>/queue/api/json
API确定构建是否排队。 Then call /job//lastBuild/api/json to get the build status. 然后调用/ job // lastBuild / api / json来获取构建状态。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.