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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChangeRequestConditional.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description ChangeRequestConditional()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAuthor()
CHANGE_AUTHOR matching.String
getAuthorDisplayName()
CHANGE_AUTHOR_DISPLAY_NAME matching.String
getAuthorEmail()
CHANGE_AUTHOR_EMAIL matching.String
getBranch()
CHANGE_BRANCH matching.String
getComparator()
The name of theComparator
to use.String
getFork()
CHANGE_FORK matching.String
getId()
CHANGE_ID matching.String
getTarget()
CHANGE_TARGET matching.String
getTitle()
CHANGE_TITLE matching.String
getUrl()
CHANGE_URL.boolean
matches(EnvVars vars)
void
setAuthor(String author)
void
setAuthorDisplayName(String authorDisplayName)
void
setAuthorEmail(String authorEmail)
void
setBranch(String branch)
void
setComparator(String comparator)
void
setFork(String fork)
void
setId(String id)
void
setTarget(String target)
void
setTitle(String title)
void
setUrl(String url)
-
Methods inherited from class org.jenkinsci.plugins.pipeline.modeldefinition.when.DeclarativeStageConditional
getChildren, getDescriptor
-
-
-
-
Method Detail
-
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 theComparator
to use. Default isComparator.EQUALS
- Returns:
- the name of the comparator, or null if default.
-
setComparator
@DataBoundSetter public void setComparator(String comparator)
-
matches
public boolean matches(EnvVars vars)
-
-