I suppose.
I have a publisher that is responsible for creating the report during the post
job step. It extends Recorder and implements SimpleBuildStep, Serializable.
In its perform function I have this:
@Override
public void perform(@Nonnull Run<?, ?> run, @Nonnull FilePath fp, @Nonnull
Launcher lnchr, @Nonnull TaskListener tl) throws InterruptedException,
IOException {
this.build = run;
DSLBuildAction buildAction = new DSLBuildAction("NA", run);
run.addAction(buildAction);
if (advancedFunctions) {
if (retrieveSummaryReport) {
summaryReportParams.noneSharedNFS = false;
ReportBuildAction reportAction = new ReportBuildAction(run,
summaryReportParams, vAPIConnectionParam,
tl,run.getExecutor().getCurrentWorkspace()); //This line creates the report on
the Node’s disk space
run.addAction(reportAction);
}
}
}
From: [email protected] <[email protected]> On Behalf
Of Ullrich Hafner
Sent: יום ד 11 נובמבר 2020 18:13
To: Jenkins Developers <[email protected]>
Subject: Re: Writing from Slave To Master
Am 11.11.2020 um 14:25 schrieb Tal Yanai <[email protected]
<mailto:[email protected]> >:
Hi Daniel,
There are two things I'm trying, both are related for the ability to show data
within Jenkins after the build is over. I have a dashboard plugin and another
plugin within the job itself that also shows a report for that job. Both of
these two web capabilities relies on an artifact that is being retrieved by two
another plugins, one is a step (and pipeline as well) and one is a post build
plugin (and pipeline as well).
I was thinking on copying over the artifacts to the master's location as soon
as they are ready within the job itself. Are you saying I can pull them inside
the master instead?
Yes.
Do you already have a publisher that can do the job?
Thanks,
Tal.
-----Original Message-----
From: <mailto:[email protected]> [email protected] <
<mailto:[email protected]> [email protected]> On
Behalf Of Daniel Beck
Sent: יום ד 11 נובמבר 2020 14:14
To: Jenkins Developers < <mailto:[email protected]>
[email protected]>
Subject: Re: Writing from Slave To Master
On 11. Nov 2020, at 12:58, Tal Yanai <[email protected]
<mailto:[email protected]> > wrote:
Trying to write a code that let me dump new file with content over to the
master workspace (while running on a remote Node).
2 things I'm struggling with:
1. How to find out the Master 'FilePath' while running within the Node.
2. How to make sure the code is written such that it will not require the
administrator to change the master security policy (to accept the Node writing
over into it's directoris)
This looks like a potential XY problem. What are you really trying to
accomplish?
It should be possible to restructure your code to make the controller read from
the agent, rather than the agent writing to the controller.
--
You received this message because you are subscribed to a topic in the Google
Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit
<https://groups.google.com/d/topic/jenkinsci-dev/I0WuyxdA9Nc/unsubscribe>
https://groups.google.com/d/topic/jenkinsci-dev/I0WuyxdA9Nc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
<mailto:[email protected]>
[email protected].
To view this discussion on the web visit
<https://groups.google.com/d/msgid/jenkinsci-dev/9705606D-9A93-4B3E-AA76-ADF78277E1F2%40beckweb.net>
https://groups.google.com/d/msgid/jenkinsci-dev/9705606D-9A93-4B3E-AA76-ADF78277E1F2%40beckweb.net.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to <mailto:[email protected]>
[email protected].
To view this discussion on the web visit
<https://groups.google.com/d/msgid/jenkinsci-dev/001c01d6b82e%2424f8a650%246ee9f2f0%24%40yanai.org.il>
https://groups.google.com/d/msgid/jenkinsci-dev/001c01d6b82e%2424f8a650%246ee9f2f0%24%40yanai.org.il.
--
You received this message because you are subscribed to a topic in the Google
Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/jenkinsci-dev/I0WuyxdA9Nc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
[email protected]
<mailto:[email protected]> .
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/EA913530-C672-4F36-836B-2E8497C17EF2%40gmail.com
<https://groups.google.com/d/msgid/jenkinsci-dev/EA913530-C672-4F36-836B-2E8497C17EF2%40gmail.com?utm_medium=email&utm_source=footer>
.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/001f01d6b847%240a80f2a0%241f82d7e0%24%40yanai.org.il.