Class UpstreamCauseRestriction
java.lang.Object
com.synopsys.arc.jenkinsci.plugins.jobrestrictions.jobs.JobCauseRestriction<Cause.UpstreamCause>
com.synopsys.arc.jenkinsci.plugins.jobrestrictions.jobs.UpstreamCauseRestriction
- All Implemented Interfaces:
Describable<JobCauseRestriction<? extends Cause>>
Allows to restrict execution according to upstream cause.
- Author:
- Oleg Nenashev
-
Nested Class Summary
Nested classes/interfaces inherited from class com.synopsys.arc.jenkinsci.plugins.jobrestrictions.jobs.JobCauseRestriction
JobCauseRestriction.JobCauseRestrictionDescriptor
-
Field Summary
-
Constructor Summary
ConstructorDescriptionUpstreamCauseRestriction
(JobRestriction jobRestriction) UpstreamCauseRestriction
(JobRestriction jobRestriction, boolean skipCheckForMissingInfo) -
Method Summary
Modifier and TypeMethodDescriptionDescriptor<JobCauseRestriction<? extends Cause>>
boolean
void
validate
(Cause.UpstreamCause cause)
-
Field Details
-
DESCRIPTOR
-
-
Constructor Details
-
UpstreamCauseRestriction
@DataBoundConstructor public UpstreamCauseRestriction(JobRestriction jobRestriction, boolean skipCheckForMissingInfo) -
UpstreamCauseRestriction
-
-
Method Details
-
getJobRestriction
-
isSkipCheckForMissingInfo
public boolean isSkipCheckForMissingInfo() -
validate
- Specified by:
validate
in classJobCauseRestriction<Cause.UpstreamCause>
- Throws:
AbortException
-
getDescriptor
-