-
Improvement
-
Resolution: Won't Do
-
Minor
-
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
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.