Hi Christian,
Here's my attempt at this (accidentally starting from master):
https://github.com/daniel-beck/saltstack-plugin/commits/refactor
This is the bare minimum to get it to print a non-default 'jobPollTime' (parameter to 'local' client interface) when run in a pipeline job (or freestyle job).
- Make the client interface into a Fruit-like (see ui-samples) class hierarchy
- Change the constructor parameter and getter types
- Implement SimpleBuildStep
- Get rid of all actual 'perform' so I could try to run it :-)
Note that this needs 1.609 or newer for f:class-entry, but I went up to 1.642.x to be able to install recent Pipeline releases in hpi:run
Of course it looks like there's some more refactoring needed to make it really nice:
- Break up constructors into ones with fewer arguments, and do the rest with @DataboundSetters, so fields with sensible defaults can be omitted from pipeline script
- Really move parameters for specific client interfaces into their classes (making existing fields transient)
- add readResolve compatibility code so existing job configs can be read successfully
- @Symbol support for easier to read pipeline scripts
- I'm not really happy with the $class/f:class-entry but otherwise I got Stapler errors, will need to look into alternatives
> --
> 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/c351fe08-af5f-4387-b341-54fd04ccb46f%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.