Re: Implementing a new Step for 'Pipeline Artifact Promotion' Plugin

2019-06-12 Thread prastik Gyawali
yes 'Void' should be returned. Thank You! On Wednesday, June 12, 2019 at 8:38:24 PM UTC+5:45, Jesse Glick wrote: > > On Tue, Jun 11, 2019 at 6:09 PM prastik Gyawali > > wrote: > > 1) What should be the implementation/use of the Execution class > here?(Its return type- a badge?) > > If it is

Re: Implementing a new Step for 'Pipeline Artifact Promotion' Plugin

2019-06-12 Thread Jesse Glick
On Tue, Jun 11, 2019 at 6:09 PM prastik Gyawali wrote: > 1) What should be the implementation/use of the Execution class here?(Its > return type- a badge?) If it is to be used from Declarative, normally the return type will be `Void`, since only a Scripted Pipeline could assign a return value

Implementing a new Step for 'Pipeline Artifact Promotion' Plugin

2019-06-11 Thread prastik Gyawali
Hello All! I was trying to create a new Declarative pipeline script Step for 'SelfPromotion' and am confused as to what goes inside the start() method while creating the step. public StepExecution start() throws Exception{ return new Execution(); } Here I later implement "Execution