Is there an API to get builds location

20 views
Skip to first unread message

Tal Yanai

unread,
Dec 9, 2016, 10:11:48 AM12/9/16
to jenkin...@googlegroups.com
Hi,

I'm looking for a way to store an XML file post each build.  If I got it right, the classic approach is to place it under JENKINS_HOME/jobs/job name/builds.

Is there some API I can use to get that location without manually building it?  Something like build.getWorkspace() just for the build's job place?

Thanks,

Tal.

Daniel Beck

unread,
Dec 9, 2016, 10:16:34 AM12/9/16
to jenkin...@googlegroups.com

> On 09.12.2016, at 16:11, Tal Yanai <t...@yanai.org.il> wrote:
>
> I'm looking for a way to store an XML file post each build. If I got it right, the classic approach is to place it under JENKINS_HOME/jobs/job name/builds.
>
> Is there some API I can use to get that location without manually building it? Something like build.getWorkspace() just for the build's job place?
>

Run#getRootDir()

Reply all
Reply to author
Forward
0 new messages