Class PlatformResourceVerification
java.lang.Object
fr.paris.lutece.plugins.releaser.business.platform.PlatformResourceVerification
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PlatformStepTask.AggregateVerification
The verification of one resource of a platform step, as reported by the step pipeline in verify-report.json : its overall status, the
version it was verified for, the commit verified (head of the branch at clone time) and the result of each check.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the result of each check, in the order they ran.Returns the commit verified, empty when the clone failed.getNote()Returns the note of the pipeline, set for the aggregate verified before the version updates, null otherwise.Returns the beta or RC tag the resource was verified from, its commit being then the commit of the tag.Returns the overall status : OK, TO_FIX or WARNING (see PlatformVerificationCheck).intgetStep()Returns the step that releases the resource, set by the verification of step 0.Returns the last beta or RC tag of the version, set when commits were made after it (untested-commits check to fix).Returns the target version the resource was verified for.voidsetChecks(List<PlatformVerificationCheck> listChecks) Sets the result of each check.voidSets the commit verified.voidSets the note of the pipeline.voidsetSourceTag(String strSourceTag) Sets the beta or RC tag the resource was verified from.voidSets the overall status.voidsetStep(int nStep) Sets the step that releases the resource.voidsetUntestedSinceTag(String strUntestedSinceTag) Sets the last beta or RC tag of the version, followed by untested commits.voidsetVersion(String strVersion) Sets the target version the resource was verified for.
-
Constructor Details
-
PlatformResourceVerification
public PlatformResourceVerification()
-
-
Method Details
-
getStatus
Returns the overall status : OK, TO_FIX or WARNING (see PlatformVerificationCheck).- Returns:
- the status
-
setStatus
Sets the overall status.- Parameters:
strStatus- the status
-
getVersion
Returns the target version the resource was verified for.- Returns:
- the version
-
setVersion
Sets the target version the resource was verified for.- Parameters:
strVersion- the version
-
getCommit
Returns the commit verified, empty when the clone failed.- Returns:
- the commit
-
setCommit
Sets the commit verified.- Parameters:
strCommit- the commit
-
getNote
Returns the note of the pipeline, set for the aggregate verified before the version updates, null otherwise.- Returns:
- the note
-
setNote
Sets the note of the pipeline.- Parameters:
strNote- the note
-
getSourceTag
Returns the beta or RC tag the resource was verified from, its commit being then the commit of the tag.- Returns:
- the tag, null when verified from the head of its branch
-
setSourceTag
Sets the beta or RC tag the resource was verified from.- Parameters:
strSourceTag- the tag
-
getUntestedSinceTag
Returns the last beta or RC tag of the version, set when commits were made after it (untested-commits check to fix).- Returns:
- the tag, null otherwise
-
setUntestedSinceTag
Sets the last beta or RC tag of the version, followed by untested commits.- Parameters:
strUntestedSinceTag- the tag
-
getStep
public int getStep()Returns the step that releases the resource, set by the verification of step 0.- Returns:
- the step number, 0 when unknown
-
setStep
public void setStep(int nStep) Sets the step that releases the resource.- Parameters:
nStep- the step number
-
getChecks
Returns the result of each check, in the order they ran.- Returns:
- the checks
-
setChecks
Sets the result of each check.- Parameters:
listChecks- the checks
-