Thanks for the comments on GitHub, I have switch over to use 
MasterToSlaveCallable.

The code seems to work well and my tests are passing, also tested it manually 
on remote slaves with no issue.  P4Groovy is just a wrapper for the 
Strings/Booleans that describe the Credentials and Workspace configuration 
details.  Importantly P4Groovy exposes methods to allow users to call our inner 
P4Java API.  This opens up all Perforce commands to a user from Groovy, quite 
useful for a lot of Perforce users.


> On 3 Sep 2016, at 00:23, Jesse Glick <[email protected]> wrote:
> 
> Not really following what you are trying to do, but what you have
> tried is not going to work.
> 
> Keep it simple. Define Pipeline steps that return simple primitive
> types or structs with `@Whitelisted` getters, and which take argument
> types which are mappable via Jenkins databinding, which limits them
> basically to `String`, `boolean`, and some `Describable`
> constructions. If you really need a higher-level convenience DSL,
> write it in Groovy using those steps, plus existing ones like `sh`, as
> building blocks.
> 
> -- 
> 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/CANfRfr2sn0E5qOF68PVb2eFGwkW8ihvFyfj5SdM8cxOsOFyFMQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

<p style"color: gray;font-size: 10pt;font-family: arial, helvetica, 
sans-serif;">
--------------------------------------------------------------------------------
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 2AQ, UK
--------------------------------------------------------------------------------
</p>

-- 
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/D0A55348-D620-4586-8425-B47ABD0B0E45%40perforce.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to