Class PlatformPlanResource

java.lang.Object
fr.paris.lutece.plugins.releaser.business.platform.PlatformPlanResource
All Implemented Interfaces:
Serializable

public class PlatformPlanResource extends Object implements Serializable
A resource to release in a platform step : a component of the step or the aggregate itself (JSON contract releaser to Jenkins).
See Also:
  • Constructor Details

    • PlatformPlanResource

      public PlatformPlanResource()
  • Method Details

    • getGroupId

      public String getGroupId()
      Returns the Maven groupId.
      Returns:
      the groupId
    • setGroupId

      public void setGroupId(String strGroupId)
      Sets the Maven groupId.
      Parameters:
      strGroupId - the groupId
    • getArtifactId

      public String getArtifactId()
      Returns the Maven artifactId.
      Returns:
      the artifactId
    • setArtifactId

      public void setArtifactId(String strArtifactId)
      Sets the Maven artifactId.
      Parameters:
      strArtifactId - the artifactId
    • getType

      public String getType()
      Returns the Maven type (jar, lutece-plugin, lutece-core, maven-plugin, pom...).
      Returns:
      the type
    • setType

      public void setType(String strType)
      Sets the Maven type.
      Parameters:
      strType - the type
    • getScmUrl

      public String getScmUrl()
      Returns the Git repository URL.
      Returns:
      the SCM URL
    • setScmUrl

      public void setScmUrl(String strScmUrl)
      Sets the Git repository URL.
      Parameters:
      strScmUrl - the SCM URL
    • getBranch

      public String getBranch()
      Returns the branch to release from.
      Returns:
      the branch
    • setBranch

      public void setBranch(String strBranch)
      Sets the branch to release from.
      Parameters:
      strBranch - the branch
    • getMasterBranch

      public String getMasterBranch()
      Returns the master branch the release is merged into, null for a pre-release.
      Returns:
      the master branch
    • setMasterBranch

      public void setMasterBranch(String strMasterBranch)
      Sets the master branch the release is merged into.
      Parameters:
      strMasterBranch - the master branch
    • getCurrentVersion

      public String getCurrentVersion()
      Returns the version currently on the branch.
      Returns:
      the current version
    • setCurrentVersion

      public void setCurrentVersion(String strCurrentVersion)
      Sets the version currently on the branch.
      Parameters:
      strCurrentVersion - the current version
    • getTargetVersion

      public String getTargetVersion()
      Returns the version to release.
      Returns:
      the target version
    • setTargetVersion

      public void setTargetVersion(String strTargetVersion)
      Sets the version to release.
      Parameters:
      strTargetVersion - the target version
    • getNextSnapshotVersion

      public String getNextSnapshotVersion()
      Returns the development version to set after the release.
      Returns:
      the next snapshot version
    • setNextSnapshotVersion

      public void setNextSnapshotVersion(String strNextSnapshotVersion)
      Sets the development version to set after the release.
      Parameters:
      strNextSnapshotVersion - the next snapshot version
    • getParentVersion

      public String getParentVersion()
      Returns the parent POM version to set before the release, null to keep the current one.
      Returns:
      the parent version
    • setParentVersion

      public void setParentVersion(String strParentVersion)
      Sets the parent POM version to set before the release.
      Parameters:
      strParentVersion - the parent version
    • getCurrentParentVersion

      public String getCurrentParentVersion()
      Returns the parent POM version declared on the branch before the release, for information.
      Returns:
      the current parent version, null when unknown
    • setCurrentParentVersion

      public void setCurrentParentVersion(String strCurrentParentVersion)
      Sets the parent POM version declared on the branch before the release.
      Parameters:
      strCurrentParentVersion - the current parent version
    • getCoreVersion

      public String getCoreVersion()
      Returns the version of lutece-core the pipeline must set in the POM of the aggregate before the release (platform pipeline).
      Returns:
      the core version, null to leave the POM unchanged
    • setCoreVersion

      public void setCoreVersion(String strCoreVersion)
      Sets the core version to set in the POM.
      Parameters:
      strCoreVersion - the core version
    • getVersionProperty

      public String getVersionProperty()
      Returns the name of the property of the aggregate POM that holds the version of this component, null when the version is declared on the dependency itself. Lets the pipeline update the aggregate POM for the released components only.
      Returns:
      the version property
    • setVersionProperty

      public void setVersionProperty(String strVersionProperty)
      Sets the version property.
      Parameters:
      strVersionProperty - the version property
    • getVerifiedCommit

      public String getVerifiedCommit()
      Returns the commit whose tests passed at the verification of the step : the release skips the tests when it clones this commit.
      Returns:
      the verified commit, null when the tests must run
    • setVerifiedCommit

      public void setVerifiedCommit(String strVerifiedCommit)
      Sets the commit whose tests passed at the verification of the step.
      Parameters:
      strVerifiedCommit - the verified commit
    • getDeployRepository

      public String getDeployRepository()
      Returns the Nexus repository of the deploy, as expected by -DaltReleaseDeploymentRepository (id::layout::url).
      Returns:
      the repository, null for the repository of the POM
    • setDeployRepository

      public void setDeployRepository(String strDeployRepository)
      Sets the Nexus repository of the deploy.
      Parameters:
      strDeployRepository - the repository (id::layout::url)
    • getSourceTag

      public String getSourceTag()
      Returns the beta or RC tag the resource is released from, instead of the head of its branch.
      Returns:
      the tag, null for a release from the SNAPSHOT
    • setSourceTag

      public void setSourceTag(String strSourceTag)
      Sets the beta or RC tag the resource is released from.
      Parameters:
      strSourceTag - the tag, null for a release from the SNAPSHOT
    • getVersionUpdates

      public PlatformVersionUpdates getVersionUpdates()
      Returns the POM updates to apply before the release.
      Returns:
      the version updates
    • setVersionUpdates

      public void setVersionUpdates(PlatformVersionUpdates versionUpdates)
      Sets the POM updates to apply before the release.
      Parameters:
      versionUpdates - the version updates
    • getCoordinates

      public String getCoordinates()
      Returns the Maven coordinates "groupId:artifactId", the key used in version updates and step results.
      Returns:
      the coordinates