Class XmlQueryStep

java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
All Implemented Interfaces:
ExtensionPoint, Describable<org.jenkinsci.plugins.workflow.steps.Step>

public class XmlQueryStep extends AbstractXPathStep
xmlQuery: evaluates an XPath expression and returns its value.
  • Constructor Details

    • XmlQueryStep

      @DataBoundConstructor public XmlQueryStep(String xpath)
  • Method Details

    • getXpath

      public String getXpath()
    • getReturnType

      public String getReturnType()
    • setReturnType

      @DataBoundSetter public void setReturnType(String returnType)
    • isFailIfNotFound

      public boolean isFailIfNotFound()
    • setFailIfNotFound

      @DataBoundSetter public void setFailIfNotFound(boolean failIfNotFound)
    • getDefaultValue

      @CheckForNull public String getDefaultValue()
      Returned (with STRING) when nothing matches; takes precedence over failIfNotFound.
    • setDefaultValue

      @DataBoundSetter public void setDefaultValue(String defaultValue)
    • start

      public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context)
      Specified by:
      start in class org.jenkinsci.plugins.workflow.steps.Step