[JIRA] [parameterized-remote-trigger-plugin] (JENKINS-32462) Checking Status of remote job fail

57 views
Skip to first unread message

abelous@hotmail.com (JIRA)

unread,
Jan 14, 2016, 1:51:02 PM1/14/16
to jenkinsc...@googlegroups.com
abelous created an issue
 
Jenkins / Bug JENKINS-32462
Checking Status of remote job fail
Issue Type: Bug Bug
Assignee: Maurice W.
Components: parameterized-remote-trigger-plugin
Created: 14/Jan/16 6:50 PM
Environment: Linux x86,
Jenkins 1.644
plugin Parameterized Remote Trigger Plugin 2.2.2
Priority: Critical Critical
Reporter: abelous

when trigger run remote job it can not get status for job that was executed and getting status from previous job
log output is :
Triggering this remote job: clear_files
Not checking if the remote job clear_files 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 #21
Remote Jenkins server returned empty response or invalid JSON - but we can still proceed with the remote build.
Query failed.
Checking parameters of #20
This job is build #[20] on the remote server.
Blocking local job until remote job completes
Remote build started!
Remote build finished with status SUCCESS.
Started calculate disk usage of build

on remote server job id was 21

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

ad_robotics@yahoo.com (JIRA)

unread,
Feb 11, 2016, 6:12:01 AM2/11/16
to jenkinsc...@googlegroups.com
Adrian Popa commented on Bug JENKINS-32462
 
Re: Checking Status of remote job fail

I have the same problem. Using Jenkins v1.636 to remotely trigger a job on Jenkins v1.646 and using Parameterized Remote Trigger Plugin v2.2.2.
Job gets triggered successfully but the log shows Query failed and then checks the status of a previous build. Exactly as described by abelous

Did anyone try to fix this?

ad_robotics@yahoo.com (JIRA)

unread,
Feb 11, 2016, 6:50:01 AM2/11/16
to jenkinsc...@googlegroups.com
Adrian Popa edited a comment on Bug JENKINS-32462
I have the same problem. Using Jenkins v1. 636 634  to remotely trigger a job on Jenkins v1.646 and using Parameterized Remote Trigger Plugin v2.2.2.
Job gets triggered successfully but the log shows Query failed and then checks the status of a previous build. Exactly as described by [~abelous]


Did anyone try to fix this?

ad_robotics@yahoo.com (JIRA)

unread,
Feb 11, 2016, 8:20:01 AM2/11/16
to jenkinsc...@googlegroups.com

Temporary solution!
Apparently this plugin identifies the remote jobs current build by checking if the build parameters match. As to why, I don't know.
A fix for this is to pass on to the remote job a unique value, the build number of the triggering job. Thus every build will have a unique number associated to it.

Jenkins A -> Job A -> Trigger a remote parameterized job / Parameters / uniqueMarker=$BUILD_NUMBER
Jenkins B -> Job B -> Check This build is parameterized and add string uniqueMarker
Job A on Jenkins A triggers Job B on Jenkins B through the plugin.
This should circumvent the problem.

ad_robotics@yahoo.com (JIRA)

unread,
Feb 11, 2016, 8:51:05 AM2/11/16
to jenkinsc...@googlegroups.com
Adrian Popa edited a comment on Bug JENKINS-32462
Temporary  solution  workaround !

Apparently this plugin identifies the remote jobs current build by checking if the build parameters match. As to why, I don't know.
A fix for this is to pass on to the remote job a unique value, the build number of the triggering job. Thus every build will have a unique number associated to it.

Jenkins A -> Job A -> Trigger a remote parameterized job / Parameters / uniqueMarker=$BUILD_NUMBER
Jenkins B -> Job B -> Check This build is parameterized and add string uniqueMarker
Job A on Jenkins A triggers Job B on Jenkins B through the plugin.
This should circumvent the problem.

ad_robotics@yahoo.com (JIRA)

unread,
Feb 11, 2016, 8:51:07 AM2/11/16
to jenkinsc...@googlegroups.com
Adrian Popa edited a comment on Bug JENKINS-32462
Temporary workaround!

Apparently this plugin identifies the remote jobs current build by checking if the build parameters match. As to why, I don't know.
A fix for this is to pass on to the remote job a unique value, the build number of the triggering job. Thus every build will have a unique number associated to it.

Jenkins A -> Job A -> Trigger a remote parameterized job / Parameters / uniqueMarker=$BUILD_NUMBER
Jenkins B -> Job B -> Check This build is parameterized and add string uniqueMarker
Job A on Jenkins A triggers Job B on Jenkins B through the plugin.
This  should circumvent  circumvents  the problem.

ad_robotics@yahoo.com (JIRA)

unread,
Feb 11, 2016, 8:52:02 AM2/11/16
to jenkinsc...@googlegroups.com
Adrian Popa edited a comment on Bug JENKINS-32462
I have the same problem. Using Jenkins v1.634  (also v1.647)  to remotely trigger a job on Jenkins v1.646 and using Parameterized Remote Trigger Plugin v2.2.2.

Job gets triggered successfully but the log shows Query failed and then checks the status of a previous build. Exactly as described by [~abelous]

Did anyone try to fix this?

chinmayeevasisht@gmail.com (JIRA)

unread,
Apr 20, 2016, 12:57:02 AM4/20/16
to jenkinsc...@googlegroups.com

Adrian Pop
How do you use this uniqueMarker=$BUILD_NUMBER ? I still see this when i provide uniqueMarker

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 #25
Remote Jenkins server returned empty response or invalid JSON - but we can still proceed with the remote build.
Query failed.
Checking parameters of #24
Unable to find expected value for Environment
Unable to find expected value for platform
Unable to find expected value for testsuit
Unable to find expected value for summarypath
Unable to find expected value for createbugonfailure
Unable to find expected value for cyclename
Unable to find expected value for fuzenodeLoc
Unable to find expected value for fullyQaulifiedDomainName
Param uniqueMarker doesn't match!
Checking parameters of #26
Remote Jenkins server returned empty response or invalid JSON - but we can still proceed with the remote build.
Query failed.
Checking parameters of #23
Unable to find expected value for Environment
Unable to find expected value for platform
Unable to find expected value for testsuit
Unable to find expected value for summarypath
Unable to find expected value for createbugonfailure
Unable to find expected value for cyclename
Unable to find expected value for fuzenodeLoc
Unable to find expected value for fullyQaulifiedDomainName
This job is build #[23] on the remote server.

ad_robotics@yahoo.com (JIRA)

unread,
Apr 20, 2016, 1:42:02 AM4/20/16
to jenkinsc...@googlegroups.com

Chinmayee Nagaraju
Job A on Jenkins A triggers a job B on Jenkins B.
In job A's config page, go to Trigger a remote parameterized job (the plugin) / Job Info / Parameters and write "uniqueMarker=$BUILD_NUMBER", without the quotes.
In Job B's config check "This is a parameterized build" and add a string parameter called uniqueMarker.
That's it The remote trigger plugin seems to identify the build you just triggered by the parameters it has been started with, and not by the build number. I guess this is because the build (of job B) doesn't get a build number until it exits the queue. You can use any parameter name with any unique value, something like the current time would also work.

ad_robotics@yahoo.com (JIRA)

unread,
Apr 20, 2016, 1:52:01 AM4/20/16
to jenkinsc...@googlegroups.com
Adrian Popa edited a comment on Bug JENKINS-32462
[~chinmayeevasisht]

Job A on Jenkins A triggers a job B on Jenkins B.
In job A's config page, go to Trigger a remote parameterized job (the plugin) / Job Info / Parameters and write "uniqueMarker=$BUILD_NUMBER", without the quotes.
In Job B's config check "This is a parameterized build" and add a string parameter called uniqueMarker.
That's it :) The remote trigger plugin seems to identify the build you just triggered by the parameters it has been started with, and not by the build number. I guess this is because the build (of job B) doesn't get a build number until it exits the queue. You can use any parameter name with any unique value, something like the current time would also work.

!http://imgur.com/xhb57Eg!

ad_robotics@yahoo.com (JIRA)

unread,
Apr 20, 2016, 1:52:02 AM4/20/16
to jenkinsc...@googlegroups.com
Adrian Popa edited a comment on Bug JENKINS-32462
[~chinmayeevasisht]
Job A on Jenkins A triggers a job B on Jenkins B.
In job A's config page, go to Trigger a remote parameterized job (the plugin) / Job Info / Parameters and write "uniqueMarker=$BUILD_NUMBER", without the quotes.
In Job B's config check "This is a parameterized build" and add a string parameter called uniqueMarker.
That's it :) The remote trigger plugin seems to identify the build you just triggered by the parameters it has been started with, and not by the build number. I guess this is because the build (of job B) doesn't get a build number until it exits the queue. You can use any parameter name with any unique value, something like the current time would also work.

!http:// i. imgur.com/xhb57Eg .png !

chinmayeevasisht@gmail.com (JIRA)

unread,
Apr 20, 2016, 1:55:01 AM4/20/16
to jenkinsc...@googlegroups.com

Thanks ! it works when there is only 1 parameter - uniqueMarker on the remote job .. when there are multiple other parameters.. it still is checking for the older builds

ad_robotics@yahoo.com (JIRA)

unread,
Apr 20, 2016, 2:00:02 AM4/20/16
to jenkinsc...@googlegroups.com

IT works just fine with multiple parameters for me. I print the message in Job B in the console and exit with that exit code.

martin@helff.net (JIRA)

unread,
Jun 2, 2016, 12:05:01 PM6/2/16
to jenkinsc...@googlegroups.com

This happens when the new build is queued on the remote. The scan for the build number will receive an empty result when looking up the status of the remote build:

Remote Jenkins server returned empty response or invalid JSON - but we can still proceed with the remote build.

The automatic scan (+-2 build numbers) most likely will pick the older build and then report the "wrong" results.

I just created a patch (pull req #23) on Github, which adds an option that forces to only check the next build number and not to "guess" it.

rishabhsharma4567@gmail.com (JIRA)

unread,
Sep 14, 2016, 3:06:02 AM9/14/16
to jenkinsc...@googlegroups.com

I am also facing same issue with Jenkins while triggering remote jenkins job:

Remote Jenkins server returned empty response or invalid JSON - but we can still proceed with the remote build.
ERROR: Build step failed with exception
java.lang.NullPointerException
	at org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.isRemoteJobParameterized(RemoteBuildConfiguration.java:1167)
	at org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.perform(RemoteBuildConfiguration.java:488)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
	at hudson.model.Build$BuildExecution.build(Build.java:205)
	at hudson.model.Build$BuildExecution.doRun(Build.java:162)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
	at com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:136)
	at hudson.model.Run.execute(Run.java:1738)
	at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:73)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:410)
Build step 'Trigger a remote parameterized job' marked build as failure
Notifying upstream projects of job completion
Finished: FAILURE

Is it just the same we are discussing here?

This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

mzeyen@epages.com (JIRA)

unread,
Oct 26, 2016, 3:25:03 AM10/26/16
to jenkinsc...@googlegroups.com

Rishabh Sharma: I got this message when my remote job does not have a parameter. Just like in this comment from Adrian Popa:
https://issues.jenkins-ci.org/browse/JENKINS-32462?focusedCommentId=255097&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-255097
your remote job needs a parameter.

dev@markus-kiss.net (JIRA)

unread,
Nov 23, 2016, 9:19:03 AM11/23/16
to jenkinsc...@googlegroups.com

We are facing the same issue... I saw that many pull requests are pending on the parameterized build trigger plugin since a year now: https://github.com/jenkinsci/parameterized-remote-trigger-plugin/pulls that fix many issues that are open here. Is the project still actively maintained, Maurice W.? Thanks in advance!

funeeldy@yahoo.com (JIRA)

unread,
Jan 6, 2017, 9:32:01 AM1/6/17
to jenkinsc...@googlegroups.com

Hello. Is this plugin supported? will this bug get fixed soon? it is causing many problems for us. thank you

himanshupaliwal134@gmail.com (JIRA)

unread,
Mar 14, 2018, 5:48:05 AM3/14/18
to jenkinsc...@googlegroups.com

Any Update on above issue?

This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

cash924n@gmail.com (JIRA)

unread,
Jul 9, 2018, 9:31:08 AM7/9/18
to jenkinsc...@googlegroups.com
KaiHsiang Chang assigned an issue to KaiHsiang Chang
 
Change By: KaiHsiang Chang
Assignee: Maurice W. KaiHsiang Chang
This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

cash924n@gmail.com (JIRA)

unread,
Jul 9, 2018, 9:31:10 AM7/9/18
to jenkinsc...@googlegroups.com

cash924n@gmail.com (JIRA)

unread,
Jul 9, 2018, 9:31:11 AM7/9/18
to jenkinsc...@googlegroups.com
KaiHsiang Chang started work on Bug JENKINS-32462
 
Change By: KaiHsiang Chang
Status: Open In Progress

cash924n@gmail.com (JIRA)

unread,
Jul 9, 2018, 9:32:05 AM7/9/18
to jenkinsc...@googlegroups.com

cash924n@gmail.com (JIRA)

unread,
Jul 9, 2018, 9:36:02 AM7/9/18
to jenkinsc...@googlegroups.com
KaiHsiang Chang closed an issue as Fixed
Change By: KaiHsiang Chang
Status: Resolved Closed
Reply all
Reply to author
Forward
0 new messages