Class PlatformPlanResource
java.lang.Object
fr.paris.lutece.plugins.releaser.business.platform.PlatformPlanResource
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the Maven artifactId.Returns the branch to release from.Returns the Maven coordinates "groupId:artifactId", the key used in version updates and step results.Returns the version of lutece-core the pipeline must set in the POM of the aggregate before the release (platform pipeline).Returns the parent POM version declared on the branch before the release, for information.Returns the version currently on the branch.Returns the Nexus repository of the deploy, as expected by -DaltReleaseDeploymentRepository (id::layout::url).Returns the Maven groupId.Returns the master branch the release is merged into, null for a pre-release.Returns the development version to set after the release.Returns the parent POM version to set before the release, null to keep the current one.Returns the Git repository URL.Returns the beta or RC tag the resource is released from, instead of the head of its branch.Returns the version to release.getType()Returns the Maven type (jar, lutece-plugin, lutece-core, maven-plugin, pom...).Returns the commit whose tests passed at the verification of the step : the release skips the tests when it clones this commit.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.Returns the POM updates to apply before the release.voidsetArtifactId(String strArtifactId) Sets the Maven artifactId.voidSets the branch to release from.voidsetCoreVersion(String strCoreVersion) Sets the core version to set in the POM.voidsetCurrentParentVersion(String strCurrentParentVersion) Sets the parent POM version declared on the branch before the release.voidsetCurrentVersion(String strCurrentVersion) Sets the version currently on the branch.voidsetDeployRepository(String strDeployRepository) Sets the Nexus repository of the deploy.voidsetGroupId(String strGroupId) Sets the Maven groupId.voidsetMasterBranch(String strMasterBranch) Sets the master branch the release is merged into.voidsetNextSnapshotVersion(String strNextSnapshotVersion) Sets the development version to set after the release.voidsetParentVersion(String strParentVersion) Sets the parent POM version to set before the release.voidSets the Git repository URL.voidsetSourceTag(String strSourceTag) Sets the beta or RC tag the resource is released from.voidsetTargetVersion(String strTargetVersion) Sets the version to release.voidSets the Maven type.voidsetVerifiedCommit(String strVerifiedCommit) Sets the commit whose tests passed at the verification of the step.voidsetVersionProperty(String strVersionProperty) Sets the version property.voidsetVersionUpdates(PlatformVersionUpdates versionUpdates) Sets the POM updates to apply before the release.
-
Constructor Details
-
PlatformPlanResource
public PlatformPlanResource()
-
-
Method Details
-
getGroupId
Returns the Maven groupId.- Returns:
- the groupId
-
setGroupId
Sets the Maven groupId.- Parameters:
strGroupId- the groupId
-
getArtifactId
Returns the Maven artifactId.- Returns:
- the artifactId
-
setArtifactId
Sets the Maven artifactId.- Parameters:
strArtifactId- the artifactId
-
getType
Returns the Maven type (jar, lutece-plugin, lutece-core, maven-plugin, pom...).- Returns:
- the type
-
setType
Sets the Maven type.- Parameters:
strType- the type
-
getScmUrl
Returns the Git repository URL.- Returns:
- the SCM URL
-
setScmUrl
Sets the Git repository URL.- Parameters:
strScmUrl- the SCM URL
-
getBranch
Returns the branch to release from.- Returns:
- the branch
-
setBranch
Sets the branch to release from.- Parameters:
strBranch- the branch
-
getMasterBranch
Returns the master branch the release is merged into, null for a pre-release.- Returns:
- the master branch
-
setMasterBranch
Sets the master branch the release is merged into.- Parameters:
strMasterBranch- the master branch
-
getCurrentVersion
Returns the version currently on the branch.- Returns:
- the current version
-
setCurrentVersion
Sets the version currently on the branch.- Parameters:
strCurrentVersion- the current version
-
getTargetVersion
Returns the version to release.- Returns:
- the target version
-
setTargetVersion
Sets the version to release.- Parameters:
strTargetVersion- the target version
-
getNextSnapshotVersion
Returns the development version to set after the release.- Returns:
- the next snapshot version
-
setNextSnapshotVersion
Sets the development version to set after the release.- Parameters:
strNextSnapshotVersion- the next snapshot version
-
getParentVersion
Returns the parent POM version to set before the release, null to keep the current one.- Returns:
- the parent version
-
setParentVersion
Sets the parent POM version to set before the release.- Parameters:
strParentVersion- the parent version
-
getCurrentParentVersion
Returns the parent POM version declared on the branch before the release, for information.- Returns:
- the current parent version, null when unknown
-
setCurrentParentVersion
Sets the parent POM version declared on the branch before the release.- Parameters:
strCurrentParentVersion- the current parent version
-
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
Sets the core version to set in the POM.- Parameters:
strCoreVersion- the core version
-
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
Sets the version property.- Parameters:
strVersionProperty- the version property
-
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
Sets the commit whose tests passed at the verification of the step.- Parameters:
strVerifiedCommit- the verified commit
-
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
Sets the Nexus repository of the deploy.- Parameters:
strDeployRepository- the repository (id::layout::url)
-
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
Sets the beta or RC tag the resource is released from.- Parameters:
strSourceTag- the tag, null for a release from the SNAPSHOT
-
getVersionUpdates
Returns the POM updates to apply before the release.- Returns:
- the version updates
-
setVersionUpdates
Sets the POM updates to apply before the release.- Parameters:
versionUpdates- the version updates
-
getCoordinates
Returns the Maven coordinates "groupId:artifactId", the key used in version updates and step results.- Returns:
- the coordinates
-