How to Make Jenkins Resolve The Remote Path

93 views
Skip to first unread message

Annonymous

unread,
May 29, 2015, 9:43:29 AM5/29/15
to jenkin...@googlegroups.com
Hi,
    


     My Jenkins Is running on two servers as of Master slave Concept. I am building my project on master but my workspace is on slave system. So how can I make my code to resolve this problem as when i am building. I am getting nullpointer exception at the time when it searches for workspace folder . 
Give me someguidance for the same
Thanks and Regards 
Annonymous

Paul Allen

unread,
May 29, 2015, 10:25:02 AM5/29/15
to jenkin...@googlegroups.com
Hi,

I have been using hudson.FilePath.FileCallable to access remote Workspaces in the ‘p4’ plugin.

You can get a FilePath object from the getWorkspace() in AbstractBuild. However, AbstractBuild has been replaced with Run and I don’t know if there is an alternative.

Perhaps one of the Jenkins core dev team knows?

Kind regards,
Paul
> --
> 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 jenkinsci-de...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/585d11e6-594c-4f92-82a2-658ea915caa1%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--------------------------------------------------------------------------------
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed. If
you have received this email in error please notify the system manager. Please
note that any views or opinions presented in this email are solely those of the
author and do not necessarily represent those of Perforce Software. Finally,
the recipient should check this email and any attachments for the presence of
viruses. Perforce Software accepts no liability for any damage caused by any
virus transmitted by this email.

Perforce Software UK Ltd is registered in England and Wales as company no.
3816019 at the following address: West Forest Gate, Wellington Road, Wokingham,
RG40 2AT, UK
--------------------------------------------------------------------------------
Reply all
Reply to author
Forward
0 new messages