David, you can take a look at what I did in the android-signing plugin 
<https://github.com/jenkinsci/android-signing-plugin/blob/master/src/main/java/org/jenkinsci/plugins/androidsigning/SignApksStep.java>.
 
 I used @StepContextParameter to inject EnvVars into the pipeline step 
(SignApksStep), which then forwards the values to the 
SimpleBuildStep/Builder instance.  Hopefully that helps and meets your 
needs.

Robert

On Monday, March 27, 2017 at 9:58:41 AM UTC-6, David Brooks wrote:
>
> 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 working under both project types just using Step?
>
> On Monday, March 27, 2017 at 9:50:59 AM UTC-4, Daniel Beck wrote:
>>
>>
>> > On 27.03.2017, at 15:47, David Brooks <[email protected]> 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/README.md 
>> is what you're looking for. `step` is not provided by core. 
>>
>>

-- 
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/a896300e-2af6-4f49-9453-5f76965e5bfc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to