Class PlatformResourceVerification

java.lang.Object
fr.paris.lutece.plugins.releaser.business.platform.PlatformResourceVerification
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PlatformStepTask.AggregateVerification

public class PlatformResourceVerification extends Object implements Serializable
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 Details

    • PlatformResourceVerification

      public PlatformResourceVerification()
  • Method Details

    • getStatus

      public String getStatus()
      Returns the overall status : OK, TO_FIX or WARNING (see PlatformVerificationCheck).
      Returns:
      the status
    • setStatus

      public void setStatus(String strStatus)
      Sets the overall status.
      Parameters:
      strStatus - the status
    • getVersion

      public String getVersion()
      Returns the target version the resource was verified for.
      Returns:
      the version
    • setVersion

      public void setVersion(String strVersion)
      Sets the target version the resource was verified for.
      Parameters:
      strVersion - the version
    • getCommit

      public String getCommit()
      Returns the commit verified, empty when the clone failed.
      Returns:
      the commit
    • setCommit

      public void setCommit(String strCommit)
      Sets the commit verified.
      Parameters:
      strCommit - the commit
    • getNote

      public String getNote()
      Returns the note of the pipeline, set for the aggregate verified before the version updates, null otherwise.
      Returns:
      the note
    • setNote

      public void setNote(String strNote)
      Sets the note of the pipeline.
      Parameters:
      strNote - the note
    • getSourceTag

      public String 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

      public void setSourceTag(String strSourceTag)
      Sets the beta or RC tag the resource was verified from.
      Parameters:
      strSourceTag - the tag
    • getUntestedSinceTag

      public String 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

      public void setUntestedSinceTag(String strUntestedSinceTag)
      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

      public List<PlatformVerificationCheck> getChecks()
      Returns the result of each check, in the order they ran.
      Returns:
      the checks
    • setChecks

      public void setChecks(List<PlatformVerificationCheck> listChecks)
      Sets the result of each check.
      Parameters:
      listChecks - the checks