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

remove workspace dependency

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Minor Minor
    • influxdb-plugin
    • None

      In a pipeline's post section I would like to invoke the influx step without having a node to not block an executor on my Jenkins.

      pipeline{
        agent none
        stages{
          ...
        }
        post{
          always{
            influx(...)
          }
        }
      }
      

      Is the dependency to a workspace necessary or could this be changed?

      Currently I get this:

      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
      

            aleksisimell Aleksi Simell
            ennef Christopher Fenner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: