[JIRA] (JENKINS-56806) remove workspace dependency

1 view
Skip to first unread message

christopher.fenner@sap.com (JIRA)

unread,
Mar 29, 2019, 4:24:02 AM3/29/19
to jenkinsc...@googlegroups.com
Christopher Fenner updated an issue
 
Jenkins / Improvement JENKINS-56806
remove workspace dependency
Change By: Christopher Fenner
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.

{code:java}
pipeline{
  agent none
  stages{
    ...
  }
  post{
    always{
      influxDb       influx (...)
    }
  }
}
{code}

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

Currently I get this:
{code
:java }
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
{code}
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

christopher.fenner@sap.com (JIRA)

unread,
Mar 29, 2019, 4:24:02 AM3/29/19
to jenkinsc...@googlegroups.com
Christopher Fenner created an issue
Issue Type: Improvement Improvement
Assignee: Aleksi Simell
Components: influxdb-plugin
Created: 2019-03-29 08:23
Priority: Minor Minor
Reporter: Christopher Fenner

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{
      influxDb(...)
    }
  }
}

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

aleksi.simell@eficode.com (JIRA)

unread,
Apr 1, 2019, 3:51:02 AM4/1/19
to jenkinsc...@googlegroups.com
Aleksi Simell commented on Improvement JENKINS-56806
 
Re: remove workspace dependency

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@eficode.com (JIRA)

unread,
Aug 28, 2019, 7:10:01 AM8/28/19
to jenkinsc...@googlegroups.com
Aleksi Simell closed an issue as Won't Do
 

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

Change By: Aleksi Simell
Status: Open Closed
Resolution: Won't Do
Reply all
Reply to author
Forward
0 new messages