Re: Plugin Pipeline Environment Variables

2017-04-03 Thread David Brooks
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 ex

Re: Plugin Pipeline Environment Variables

2017-04-03 Thread Dzmitry Kashlach
Hi David, I had exactly the same problem(it seems to me). Try to follow this discussion , 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

Re: Plugin Pipeline Environment Variables

2017-03-29 Thread Jesse Glick
On Mon, Mar 27, 2017 at 11:58 AM, David Brooks wrote: > my plugin no longer appears in a Freestyle > project under Build Steps because I am not extending Builder nor > implementing SimpleBuildStep anymore. Do you think that I can have this > plugin working under both project types just using Step?

Re: Plugin Pipeline Environment Variables

2017-03-29 Thread Robert St. John
David, you can take a look at what I did in the android-signing plugin . I used @StepContextParameter to inject EnvVars into the pipeline step (SignApksStep), w

Re: Plugin Pipeline Environment Variables

2017-03-27 Thread David Brooks
So I extended Step, and was able to get my run() method to print out text in a pipeline project. However, my plugin no longer appears in a Freestyle project under Build Steps because I am not extending Builder nor implementing SimpleBuildStep anymore. Do you think that I can have this plugin wo

Re: Plugin Pipeline Environment Variables

2017-03-27 Thread David Brooks
Thanks Daniel, I will take a crack at it! On Monday, March 27, 2017 at 9:50:59 AM UTC-4, Daniel Beck wrote: > > > > On 27.03.2017, at 15:47, David Brooks > > wrote: > > > > However, I do not see any documentation around Step and BuildStep has > been deprecated. I just need a little nudge in th

Plugin Pipeline Environment Variables

2017-03-27 Thread David Brooks
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

Re: Plugin Pipeline Environment Variables

2017-03-27 Thread Daniel Beck
> On 27.03.2017, at 15:47, David Brooks wrote: > > 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. I think https://github.com/jenkinsci/workflow-step-api-plugin/blob/master/RE