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/ab6f2fba-7718-4229-8f96-d6e7fccbed7d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
