• 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
      

          [JENKINS-56806] remove workspace dependency

          Aleksi Simell added a comment -

          Without looking too deeply into this yet, this is not possible with the current implementation. `perform` which is the only part that uses the FilePath is an override from https://javadoc.jenkins-ci.org/jenkins/tasks/SimpleBuildStep.html, so it needs to have the FilePath as a parameter. Even though the plugin in itself doesn't use it, the override function needs it.

          Aleksi Simell added a comment - Without looking too deeply into this yet, this is not possible with the current implementation. `perform` which is the only part that uses the FilePath is an override from https://javadoc.jenkins-ci.org/jenkins/tasks/SimpleBuildStep.html , so it needs to have the FilePath as a parameter. Even though the plugin in itself doesn't use it, the override function needs it.

          Aleksi Simell added a comment -

          Workspace dependency is required by the perform() function in InfluxDbPublisher.

          Aleksi Simell added a comment - Workspace dependency is required by the perform() function in InfluxDbPublisher.

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

              Created:
              Updated:
              Resolved: