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

GitHubCommitStatusSetter should not require a node

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • github-plugin
    • None
    • Jenkins 2.231
      GitHub plugin 1.30.0

      Attempting to execute the GitHubCommitStatusSetter outside of a node block results in the following error:
       

      org.jenkinsci.plugins.workflow.steps.MissingContextVariableException: Required context class hudson.FilePath is missing
      Perhaps you forgot to surround the code with a step that provides this, such as: node
      

      This is unfortunate, because all the step does is send an HTTP request to GitHub, which can be done from the Jenkins master, and thus doesn't require a node. In fact, a cursory reading of the code suggests that the request is made from the master. So the step should not require a node in order to run.

            lanwen Kirill Merkushev
            rdonchen_intel Roman Donchenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: