package Ġcom . code 4 2 . jenkins . pipeline kt . dsl . post Ċ Ċ import Ġcom . code 4 2 . jenkins . pipeline kt . core . Post Ċ import Ġcom . code 4 2 . jenkins . pipeline kt . core . step . Step Ċ import Ġcom . code 4 2 . jenkins . pipeline kt . core . writer . ext . to Step Ċ import Ġcom . code 4 2 . jenkins . pipeline kt . dsl . Dsl Context Ċ Ċ class ĠPost Context ( ĊĠĠĠ Ġval Ġalways Context : ĠD sl Context < Step > Ġ= ĠD sl Context (), ĊĠĠĠ Ġval Ġsuccess Context : ĠD sl Context < Step > Ġ= ĠD sl Context (), ĊĠĠĠ Ġval Ġcleanup Context : ĠD sl Context < Step > Ġ= ĠD sl Context () Ċ ) Ġ{ ĊĠĠĠ Ġfun Ġalways ( always Block : ĠD sl Context < Step >. () Ġ-> ĠUnit ) Ġ{ ĊĠĠĠĠĠĠĠ Ġalways Context . always Block () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġsuccess ( success Block : ĠD sl Context < Step >. () Ġ-> ĠUnit ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuccess Context . success Block () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcleanup ( cleanup Block : ĠD sl Context < Step >. () Ġ-> ĠUnit ) Ġ{ ĊĠĠĠĠĠĠĠ Ġcleanup Context . cleanup Block () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġto Post (): ĠPost Ġ= ĠPost ( always Ġ= Ġalways Context . drain All (). to Step (), Ġsuccess Ġ= Ġsuccess Context . drain All (). to Step (), Ġcleanup Ġ= Ġcleanup Context . drain All (). to Step ()) Ċ } Ċ