Hey everyone/Jesse, Thanks for all of your assistance and pointers thus far!
In the currently released pre-pipeline version, this plugin was capable of performing its own variable substitution to read in existing environment variables as well as export the return into an envvar for further processing. With the groovy enabled pipeline syntax, these over complicated devices can be done away with. Reading in envvars is no longer necessary as any processing can be handled outside of the plugin in groovy, and once the plugin is able to return the API output, the hack of exporting a variable will be unnecessary as well. I'm a bit stuck on the conversion of SimpleBuildStep to full step needed to have the pipeline syntax be able to return output to be saved into a variable. As I'm not a jenkins framework expert by any means, would anyone be able to provide any additional assistance on the mentioned step conversion? The master branch of https://github.com/jenkinsci/saltstack-plugin/ commits/master has been cleaned up a little bit which should help readability a tad. Again, thanks much. Any help you can provide would be appreciated. On Tue, Dec 6, 2016 at 4:28 PM, Jesse Glick <[email protected]> wrote: > On Tue, Dec 6, 2016 at 1:26 AM, Christian McHugh > <[email protected]> wrote: > > Can you advice on how to get > > https://github.com/jenkinsci/saltstack-plugin/blob/master/ > src/main/java/com/waytta/SaltAPIBuilder.java#L217 > > this returnArray.toString() variable exported in a pipeline job? > > You can return a value from a `Step`. Not a `SimpleBuildStep`. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Jenkins Developers" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/jenkinsci-dev/ZnPA7zW6UFY/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/jenkinsci-dev/CANfRfr1Ex_Do0ptOsqY3i%3D% > 2Bu6TcdAoxdWtLTaPn8LvKaCOHPGQ%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout. > -- 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/CAPnfjnfOQzSvb%2BzPpAkRhK1nzK_dWP4jx7zu%2BQ%2BFUpQV%3DG26%2BQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
