Class GitScm
- java.lang.Object
-
- org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
-
- org.jenkinsci.test.acceptance.po.PageAreaImpl
-
- org.jenkinsci.test.acceptance.po.Scm
-
- org.jenkinsci.test.acceptance.plugins.git.GitScm
-
- All Implemented Interfaces:
CapybaraPortingLayer
,Control.Owner
,PageArea
- Direct Known Subclasses:
GitblitScm
,GitLabScm
,PhabricatorScm
,ViewgitScm
public class GitScm extends Scm
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GitScm.AdvancedCheckout
static class
GitScm.AdvancedClone
static class
GitScm.Behaviour
static class
GitScm.CalculateChangelog
static class
GitScm.CheckoutToLocalBranch
static class
GitScm.CheckoutToLocalDir
static class
GitScm.CleanAfterCheckout
static class
GitScm.CleanBeforeCheckout
static class
GitScm.CommitAuthorInChangelog
static class
GitScm.CreateTagForBuild
static class
GitScm.CustomNameAndMail
static class
GitScm.CustomSCMName
static class
GitScm.ForcePollingUsingWorkspace
static class
GitScm.GitLfsPull
static class
GitScm.MergeBeforeBuild
static class
GitScm.NoBuildOnCommit
static class
GitScm.PollingIgnoresMessage
static class
GitScm.PollingIgnoresPath
static class
GitScm.PollingIgnoresUser
static class
GitScm.PruneStableRemoteBranches
static class
GitScm.RecursiveSubmodules
static class
GitScm.SparseCheckoutPaths
static class
GitScm.StrategyToChooseBuild
static class
GitScm.WipeAndForceClone
-
Nested classes/interfaces inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
CapybaraPortingLayerImpl.Finder<R>, CapybaraPortingLayerImpl.Resolver
-
-
Field Summary
-
Fields inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
driver, injector, LABEL_TO_INPUT_XPATH, time
-
Fields inherited from interface org.jenkinsci.test.acceptance.po.CapybaraPortingLayer
by
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends GitScm.Behaviour>
TaddBehaviour(Class<T> type)
GitScm.AdvancedCheckout
advancedCheckout()
Add behaviour "Advanced checkout behaviours"GitScm.AdvancedClone
advancedClone()
Add behaviour "Advanced clone behaviours"GitScm
branch(String branch)
GitScm
calculateChangelog(String remote, String branch)
Add behaviour "Calculate changelog against specific branch"GitScm
chooseBuildStrategy(String strategy)
Select strategy for choosing what to buildGitScm
chooseBuildStrategy(String strategy, int age, String ancestor)
Select strategy for choosing what to buildGitScm
cleanAfterCheckout()
Add behaviour "Clean after checkout"GitScm
cleanBeforeCheckout()
Add behaviour "Clean before checkout"GitScm
commitAuthorInChangelog()
Add behaviour "Use commit author in changelog"GitScm
createTagForBuild()
Add behaviour "Create tag for every build"GitScm
credentials(String name)
GitScm
customNameAndMail(String name, String email)
Add behaviour "Custom user name/e-mail address"GitScm
customScmName(String name)
Add behaviour "Custom SCM name"void
enableRecursiveSubmoduleProcessing()
GitScm
localBranch(String branch)
GitScm
localDir(String dir)
GitScm.MergeBeforeBuild
mergeBeforeBuild()
Add behaviour "Merge before build"GitScm
remoteName(String name)
GitScm
repositoryBrowser(String name)
Select repository browser typeGitScm.SparseCheckoutPaths
sparseCheckout()
Add behaviour "Sparse checkout"GitScm
tool(String tool)
GitScm
url(String url)
GitScm
urlRepositoryBrowser(String url)
Set URL for repository browser-
Methods inherited from class org.jenkinsci.test.acceptance.po.PageAreaImpl
control, control, createPageArea, getPage, getPath, getPath, getPath, path, self
-
Methods inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
all, blur, check, check, check, choose, clickButton, clickLink, confirmAlert, elasticSleep, executeScript, fillIn, find, findCaption, findCaption, findIfNotVisible, getCurrentUrl, getCurrentUrlWithFragment, getElement, getPageContent, getPageSource, getPageSource, getPath, handleAlert, isHiddenOrStale, isStale, last, lastIfNotVisible, newInstance, resource, runThenConfirmAlert, runThenConfirmAlert, runThenHandleAlert, runThenHandleAlert, runThenHandleDialog, sleep, visit, waitFor, waitFor, waitFor, waitFor, waitFor, waitForCond, waitForCond
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jenkinsci.test.acceptance.po.CapybaraPortingLayer
all, blur, check, check, check, choose, clickButton, clickLink, confirmAlert, executeScript, fillIn, find, findIfNotVisible, getElement, getPageSource, last, lastIfNotVisible, runThenConfirmAlert, waitFor, waitFor, waitFor, waitFor, waitFor, waitForCond, waitForCond
-
-
-
-
Method Detail
-
enableRecursiveSubmoduleProcessing
public void enableRecursiveSubmoduleProcessing()
-
calculateChangelog
public GitScm calculateChangelog(String remote, String branch)
Add behaviour "Calculate changelog against specific branch"- Parameters:
remote
- Remote to compare withbranch
- Branch to compare with- Returns:
- this, to allow function chaining
-
commitAuthorInChangelog
public GitScm commitAuthorInChangelog()
Add behaviour "Use commit author in changelog"- Returns:
- this, to allow function chaining
-
cleanAfterCheckout
public GitScm cleanAfterCheckout()
Add behaviour "Clean after checkout"- Returns:
- this, to allow function chaining
-
cleanBeforeCheckout
public GitScm cleanBeforeCheckout()
Add behaviour "Clean before checkout"- Returns:
- this, to allow function chaining
-
createTagForBuild
public GitScm createTagForBuild()
Add behaviour "Create tag for every build"- Returns:
- this, to allow function chaining
-
customScmName
public GitScm customScmName(String name)
Add behaviour "Custom SCM name"- Parameters:
name
- Custom name- Returns:
- this, to allow function chaining
-
customNameAndMail
public GitScm customNameAndMail(String name, String email)
Add behaviour "Custom user name/e-mail address"- Parameters:
name
- Custom name- Returns:
- this, to allow function chaining
-
sparseCheckout
public GitScm.SparseCheckoutPaths sparseCheckout()
Add behaviour "Sparse checkout"- Returns:
- behaviour, to access .addPath() method
-
advancedClone
public GitScm.AdvancedClone advancedClone()
Add behaviour "Advanced clone behaviours"- Returns:
- behaviour, to access its method
-
advancedCheckout
public GitScm.AdvancedCheckout advancedCheckout()
Add behaviour "Advanced checkout behaviours"- Returns:
- behaviour, to access its method
-
chooseBuildStrategy
public GitScm chooseBuildStrategy(String strategy)
Select strategy for choosing what to build- Parameters:
strategy
- Strategy to use ("Default" || "Inverse")- Returns:
- this, to allow function chaining
-
chooseBuildStrategy
public GitScm chooseBuildStrategy(String strategy, int age, String ancestor)
Select strategy for choosing what to build- Parameters:
strategy
- Strategy to use ("Ancestry" || "Default" || "Inverse")age
- Age in days (only for strategy "Ancestry")ancestor
- SHA1 commit hash (only for strategy "Ancestry")- Returns:
- this, to allow function chaining
-
repositoryBrowser
public GitScm repositoryBrowser(String name)
Select repository browser type- Parameters:
name
- Type of repository browser- Returns:
- this, to allow function chaining
-
urlRepositoryBrowser
public GitScm urlRepositoryBrowser(String url)
Set URL for repository browser- Parameters:
url
- URL to be set- Returns:
- this, to allow function chaining
-
mergeBeforeBuild
public GitScm.MergeBeforeBuild mergeBeforeBuild()
Add behaviour "Merge before build"- Returns:
- behaviour, to access its method
-
addBehaviour
public <T extends GitScm.Behaviour> T addBehaviour(Class<T> type)
-
-