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

httpRequest step called outside node causes exception

      httpRequest step called outside node causes exception "Required context class hudson.FilePath is missing"

      as i think, this is because

      logResponseToFile(build.getWorkspace(), logger, responseContentSupplier);
      

      is called in

      HttpRequest.perform

          [JENKINS-41803] httpRequest step called outside node causes exception

          Can you add the full script that throws the error?

          And also the log printed from the job execution.

          Janario Oliveira added a comment - Can you add the full script that throws the error? And also the log printed from the job execution.

          This is expected by Jenkins not the plugin. As it shows on its logs

          > Required context class hudson.FilePath is missing
          > Perhaps you forgot to surround the code with a step that provides this, such as: node

           

          It would also happen if I tried to access workspace inside the job execution

          Janario Oliveira added a comment - This is expected by Jenkins not the plugin. As it shows on its logs > Required context class hudson.FilePath is missing > Perhaps you forgot to surround the code with a step that provides this, such as: node   It would also happen if I tried to access workspace inside the job execution

            janario Janario Oliveira
            salashnik Dmitry Salashnik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: