Class ChangeRequestConditional

java.lang.Object
hudson.model.AbstractDescribableImpl<T>
org.jenkinsci.plugins.pipeline.modeldefinition.withscript.WithScriptDescribable<S>
org.jenkinsci.plugins.pipeline.modeldefinition.when.DeclarativeStageConditional<ChangeRequestConditional>
org.jenkinsci.plugins.pipeline.modeldefinition.when.impl.ChangeRequestConditional
All Implemented Interfaces:
ExtensionPoint, Describable<ChangeRequestConditional>, Serializable

public class ChangeRequestConditional extends org.jenkinsci.plugins.pipeline.modeldefinition.when.DeclarativeStageConditional<ChangeRequestConditional>
See Also:
  • Constructor Details

    • ChangeRequestConditional

      @DataBoundConstructor public ChangeRequestConditional()
  • Method Details

    • getId

      public String getId()
      CHANGE_ID matching.
      Returns:
      id
      See Also:
      • ChangeRequestSCMHead.getId()
    • setId

      @DataBoundSetter public void setId(String id)
    • getTarget

      public String getTarget()
      CHANGE_TARGET matching.
      Returns:
      target
      See Also:
      • SCMHead.getName()
    • setTarget

      @DataBoundSetter public void setTarget(String target)
    • getBranch

      public String getBranch()
      CHANGE_BRANCH matching.
      Returns:
      target
      See Also:
      • ChangeRequestSCMHead2.getOriginName()
    • setBranch

      @DataBoundSetter public void setBranch(String branch)
    • getFork

      public String getFork()
      CHANGE_FORK matching.
      Returns:
      fork
      See Also:
      • SCMHeadOrigin.Fork.getName()
    • setFork

      @DataBoundSetter public void setFork(String fork)
    • getUrl

      public String getUrl()
      CHANGE_URL. Ant style matching doesn't work on url strings due to it being meant for regular paths and all those extra characters conflicts.
      Returns:
      url
      See Also:
      • ObjectMetadataAction.getObjectUrl()
    • setUrl

      @DataBoundSetter public void setUrl(String url)
    • getTitle

      public String getTitle()
      CHANGE_TITLE matching.
      Returns:
      title
      See Also:
      • ObjectMetadataAction.getObjectDisplayName()
    • setTitle

      @DataBoundSetter public void setTitle(String title)
    • getAuthor

      public String getAuthor()
      CHANGE_AUTHOR matching.
      Returns:
      authorDisplayName
      See Also:
      • ContributorMetadataAction.getContributor()
    • setAuthor

      @DataBoundSetter public void setAuthor(String author)
    • getAuthorDisplayName

      public String getAuthorDisplayName()
      CHANGE_AUTHOR_DISPLAY_NAME matching.
      Returns:
      authorDisplayName
      See Also:
      • ContributorMetadataAction.getContributorDisplayName()
    • setAuthorDisplayName

      @DataBoundSetter public void setAuthorDisplayName(String authorDisplayName)
    • getAuthorEmail

      public String getAuthorEmail()
      CHANGE_AUTHOR_EMAIL matching.
      Returns:
      authorEmail
      See Also:
      • ContributorMetadataAction.getContributorEmail()
    • setAuthorEmail

      @DataBoundSetter public void setAuthorEmail(String authorEmail)
    • getComparator

      public String getComparator()
      The name of the Comparator to use. Default is Comparator.EQUALS
      Returns:
      the name of the comparator, or null if default.
    • setComparator

      @DataBoundSetter public void setComparator(String comparator)
    • matches

      public boolean matches(EnvVars vars)