In that way it mirrors java.io.File.
Based on the Javadoc, use build.getWorkspace().child('prefix.suffix') to refer
to an item within the workspace, then use one of the `write` methods.
On 26.07.2013, at 02:08, Zhengyuan Shen <[email protected]> wrote:
> Hi guys,
>
> In my plugin, I need to create a file in the workspace so that I can get
> access to it in my next build step. The way I am doing it is using the
> FilePath.
>
> like: build.getWorkspace().createTempFile("prefix","suffix");
>
> This will actually generate a file named prefix1323buildNumber3132.suffix
>
> Does anybody know how can I get rid of this buildNumber and just get the file
> named prefix.suffix.
>
> Thanks,
>
> --
> 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].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
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].
For more options, visit https://groups.google.com/groups/opt_out.