Hey everyone, Thanks for the help! I have gone the route of implementing `Step` directly. All seems to be working just fine! I have taken a route closer to what Jesse described above.
Thanks, David On Monday, April 3, 2017 at 3:33:09 AM UTC-4, Dzmitry Kashlach wrote: > > Hi David, > > I had exactly the same problem(it seems to me). > Try to follow this discussion > <https://groups.google.com/forum/#!msg/jenkinsci-dev/gZQjSaVtluU/ixAA9Bt8BAAJ>, > > it can be useful. > > On Monday, March 27, 2017 at 4:47:10 PM UTC+3, David Brooks wrote: >> >> Hey all, >> >> I have been working on an internal plugin for our company and currently >> having it working for Freestyle projects. However, I would like to update >> it to support Pipelines and have a question about Environment Variables. I >> implemented SimpleBuildStep, but according to a fellow dev (here >> <https://issues.jenkins-ci.org/browse/JENKINS-29144>) we cannot get env >> variables using SimpleBuildStep. I was instructed to implement Step >> instead, which according to that same developer, would provide env vars. >> However, I do not see any documentation around Step and BuildStep has been >> deprecated. I just need a little nudge in the right direction, not the full >> solution. Currently, the header of our class looks like: >> public class IntrepidBuilder extends Builder implements SimpleBuildStep { >> >> Additionally, if anyone has any experience using a plugin hosted in a >> private repo on GitHub, how would I provide our Jenkins instance with the >> correct credentials to checkout the plugin from our private repo? >> >> Thanks, >> David >> > -- 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/32d82c01-3359-4e04-8e9a-12ace975be86%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
