Interface IVCSResourceService
- All Known Implementing Classes:
GitResourceService
public interface IVCSResourceService
The Interface IVCSResourceService.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcheckoutBranch(WorkflowReleaseContext context, String strBranch, Locale locale) Checkout the given branch.doCloneRepository(WorkflowReleaseContext context, String strLogin, String strPassword) Do clone repository.Fetch pom.getLastRelease(Site site, String strLogin, String strPassword) Gets the last release.voidrollbackRelease(WorkflowReleaseContext context, Locale locale) Rollback release.voidupdateBranch(WorkflowReleaseContext context, String strBranch, Locale locale, String strMessage) Commit and push the local working tree on the given branch.voidupdateMasterBranch(WorkflowReleaseContext context, String strMasterBranch, Locale locale) Merge the release-from branch (or the last release tag) into the given master* branch and push.
-
Method Details
-
fetchPom
Fetch pom.- Parameters:
site- the sitestrLogin- the str loginstrPassword- the str password- Returns:
- the string
-
getLastRelease
Gets the last release.- Parameters:
site- the sitestrLogin- the str loginstrPassword- the str password- Returns:
- the last release
-
doCloneRepository
Do clone repository.- Parameters:
context- the contextstrLogin- the str loginstrPassword- the str password- Returns:
- the string
-
updateBranch
void updateBranch(WorkflowReleaseContext context, String strBranch, Locale locale, String strMessage) Commit and push the local working tree on the given branch.- Parameters:
context- the contextstrBranch- the branch to updatelocale- the localestrMessage- the commit message
-
updateMasterBranch
Merge the release-from branch (or the last release tag) into the given master* branch and push.- Parameters:
context- the contextstrMasterBranch- the target master* branch (e.g. "master", "master_core7")locale- the locale
-
rollbackRelease
Rollback release.- Parameters:
context- the contextlocale- the locale
-
checkoutBranch
Checkout the given branch.- Parameters:
context- the contextstrBranch- the branch to checkoutlocale- the locale
-