StepContext.get(java.lang.Class<T>)
as needed and avoid Guice.@Deprecated @Retention(value=RUNTIME) @Target(value={METHOD,FIELD}) @Documented public @interface StepContextParameter
StepContext.get(Class)
.
Used on methods and fields of the subtype of AbstractStepExecutionImpl
.
AbstractStepImpl.start(org.jenkinsci.plugins.workflow.steps.StepContext)
and AbstractStepExecutionImpl.onResume()
will inject context variables
to those fields.AbstractStepImpl
Copyright © 2016–2017. All rights reserved.