public interface BuilderConverter extends ExtensionPoint
Builder.
Your extension can either return a ModelASTStage or modify the model from the ConverterResult instanceExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Builder builder) |
org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStage |
convert(ConverterRequest request,
ConverterResult converterResult,
Builder builder) |
default void |
wrapBranch(ConverterResult converterResult,
org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep mainStep,
org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBranch mainBranch)
if needed this will wrap your step with build wrapper such withCredential, configFile
|
org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStage convert(ConverterRequest request, ConverterResult converterResult, Builder builder)
boolean canConvert(Builder builder)
builder - the builder to converttrue if the extension is able to convert the Builderdefault void wrapBranch(ConverterResult converterResult, org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep mainStep, org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBranch mainBranch)
converterResult - the current resultmainStep - the step to add/wrapmainBranch - the current branchCopyright © 2016–2019. All rights reserved.