2018년 10월 2일 화요일 오후 5시 40분 45초 UTC+9, JIHYE LEE 님의 말:
>
> Hi !
> I'm developing jenkins plugin using pipeline.
>
> There is part of code.
>
> private int uploadObject(String containerName, String path, FilePath
> uploadFilePath)
> {
> if(false == uploadFilePath.exsit()) { // result is true!!
> ....
> exception;
> }
>
> InputStreamEntity inputStreamEntity = new InputStreamEntity(
> uploadFilePath.read(),-1);
> ....
>
> HttpUriRequest request =
> RequestBuilder.create(method)
> .setUri(uri)
> .setHeader(header)
> .setEntity(inputStreamEntity)
> .build();
> .....
> }
>
>
> Result Log Message
> java.lang.IllegalArgumentException:
> /Users/builder/workspace/test/project_test/abc.txt does not exist
>
>
> If the plugin run on master node, it's working with out any problem.
> But when I test it on slave, can't find the file..
> When I check if the file or directory is exist or not, it is existed.
>
>
> How can i use or read the file on slave? Could you help me please?
>
>
>
>
--
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/e6d0bc7d-1d8b-4d76-85d4-6a79149ed08f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.