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

httpRequest step called outside node causes exception

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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

        Attachments

          Activity

          Hide
          janario Janario Oliveira added a comment -

          Can you add the full script that throws the error?

          And also the log printed from the job execution.

          Show
          janario Janario Oliveira added a comment - Can you add the full script that throws the error? And also the log printed from the job execution.
          Hide
          janario 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

          Show
          janario 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

            People

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

              Dates

              Created:
              Updated:
              Resolved: