Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-47919

Checking parameters of remote job build fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      Linux x86,
      Jenkins 2.46.2
      Jenkins 2.73.3
      plugin Parameterized Remote Trigger Plugin 2.2.2
    • Similar Issues:

      Description

      WHEN IT WORKS:

      When triggering from Jenkins v2.46.2 a job located on remote Jenkins v1.651.3 the operation is carried out successfully. Remote job is triggered and runs to completion without any errors.

       

      WHEN IT DOESN'T WORK:

      When triggering from Jenkins v2.46.2 a job located on remote Jenkins v2.73.3, the remote job is triggered but local job ( the one that triggered the remote job ) fails with this error:

       

      Building remotely on AgentVM (deployment) in workspace C:\jenkins\workspace\testlaunch
      Triggering this remote job: Remote_Job_Name
      Not checking if the remote job Remote_Job_Name is building.
      Using job-level defined credentails in place of those from remote Jenkins config [Remote_Jenkins_VM_Name]
      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 #4
      ERROR: Build step failed with exception
      java.lang.NullPointerException
      {{ at java.io.Reader.<init>(Reader.java:78)}}
      {{ at java.io.InputStreamReader.<init>(InputStreamReader.java:72)}}
      {{ at org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.sendHTTPCall(RemoteBuildConfiguration.java:980)}}
      {{ at org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.sendHTTPCall(RemoteBuildConfiguration.java:799)}}
      {{ at org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.perform(RemoteBuildConfiguration.java:556)}}
      {{ at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)}}
      {{ at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)}}
      {{ at hudson.model.Build$BuildExecution.build(Build.java:206)}}
      {{ at hudson.model.Build$BuildExecution.doRun(Build.java:163)}}
      {{ at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)}}
      {{ at hudson.model.Run.execute(Run.java:1728)}}
      {{ at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)}}
      {{ at hudson.model.ResourceController.execute(ResourceController.java:98)}}
      {{ at hudson.model.Executor.run(Executor.java:405)}}
      Build step 'Trigger a remote parameterized job' marked build as failure
      Finished: FAILURE

        Attachments

          Issue Links

            Activity

            Hide
            dineshkumar_n Dinesh added a comment -

            Parameterized Remote Trigger Plugin we use in our project is 3.0.3, but still we face the above mentioned NullPointerException and remote trigger is not happening.

            Local Jenkins - 2.121.2

            Remote Jenkins - 2.73.3

            Kindly help if anyone have fixed it.

            Show
            dineshkumar_n Dinesh added a comment - Parameterized Remote Trigger Plugin we use in our project is 3.0.3, but still we face the above mentioned NullPointerException and remote trigger is not happening. Local Jenkins - 2.121.2 Remote Jenkins - 2.73.3 Kindly help if anyone have fixed it.
            Hide
            cashlalala KaiHsiang Chang added a comment -

            Any more information?

            The log of job and jenkins, input parameter, remote job config, everything you've ever configured related to the plugin settings. 

             

            Show
            cashlalala KaiHsiang Chang added a comment - Any more information? The log of job and jenkins, input parameter, remote job config, everything you've ever configured related to the plugin settings.   
            Hide
            dineshkumar_n Dinesh added a comment -

            The log is as follows:

            ERROR: Build step failed with exception
            java.lang.NullPointerException
            at org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.evaluateEffectiveRemoteHost(RemoteBuildConfiguration.java:385)
            at org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.perform(RemoteBuildConfiguration.java:533)
            at org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.perform(RemoteBuildConfiguration.java:514)
            at org.jenkinsci.plugins.conditionalbuildstep.BuilderChain.perform(BuilderChain.java:71)
            at org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:110)
            at org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail.conditionalRun(BuildStepRunner.java:154)
            at org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105)
            at org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder.perform(ConditionalBuilder.java:134)
            at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
            at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
            at hudson.model.Build$BuildExecution.build(Build.java:206)
            at hudson.model.Build$BuildExecution.doRun(Build.java:163)
            at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
            at hudson.model.Run.execute(Run.java:1798)
            at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
            at hudson.model.ResourceController.execute(ResourceController.java:97)
            at hudson.model.Executor.run(Executor.java:429)
            Build step 'Conditional steps (multiple)' marked build as failure

             

            Earlier with the same configuration it was working only. But suddenly it failed to work with the above log since after plugin update also.

            Show
            dineshkumar_n Dinesh added a comment - The log is as follows: ERROR: Build step failed with exception java.lang.NullPointerException at org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.evaluateEffectiveRemoteHost(RemoteBuildConfiguration.java:385) at org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.perform(RemoteBuildConfiguration.java:533) at org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.perform(RemoteBuildConfiguration.java:514) at org.jenkinsci.plugins.conditionalbuildstep.BuilderChain.perform(BuilderChain.java:71) at org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:110) at org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail.conditionalRun(BuildStepRunner.java:154) at org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105) at org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder.perform(ConditionalBuilder.java:134) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744) at hudson.model.Build$BuildExecution.build(Build.java:206) at hudson.model.Build$BuildExecution.doRun(Build.java:163) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504) at hudson.model.Run.execute(Run.java:1798) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) Build step 'Conditional steps (multiple)' marked build as failure   Earlier with the same configuration it was working only. But suddenly it failed to work with the above log since after plugin update also.
            Hide
            cashlalala KaiHsiang Chang added a comment - - edited

            Okay, this is definitely another issue i think. 
            Could you file another ticket and post this exception along with your configurations?

            Show
            cashlalala KaiHsiang Chang added a comment - - edited Okay, this is definitely another issue i think.  Could you file another ticket and post this exception along with your configurations?
            Hide
            dineshkumar_n Dinesh added a comment - - edited

            I have created a separate ticket for the issue - https://issues.jenkins-ci.org/browse/JENKINS-52810

            Kindly help.

            Show
            dineshkumar_n Dinesh added a comment - - edited I have created a separate ticket for the issue - https://issues.jenkins-ci.org/browse/JENKINS-52810 Kindly help.

              People

              • Assignee:
                cashlalala KaiHsiang Chang
                Reporter:
                fairmonk mihai ono
              • Votes:
                7 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: