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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends GitScm.Behaviour>
TaddBehaviour
(Class<T> type) Add behaviour "Advanced checkout behaviours"Add behaviour "Advanced clone behaviours"calculateChangelog
(String remote, String branch) Add behaviour "Calculate changelog against specific branch"chooseBuildStrategy
(String strategy) Select strategy for choosing what to buildchooseBuildStrategy
(String strategy, int age, String ancestor) Select strategy for choosing what to buildAdd behaviour "Clean after checkout"Add behaviour "Clean before checkout"Add behaviour "Use commit author in changelog"Add behaviour "Create tag for every build"credentials
(String name) customNameAndMail
(String name, String email) Add behaviour "Custom user name/e-mail address"customScmName
(String name) Add behaviour "Custom SCM name"void
localBranch
(String branch) Add behaviour "Merge before build"remoteName
(String name) repositoryBrowser
(String name) Select repository browser typeAdd behaviour "Sparse checkout"Set URL for repository browserMethods 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, runThenHandleInputDialog, 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
-
Constructor Details
-
GitScm
-
-
Method Details
-
url
-
credentials
-
tool
-
branch
-
localBranch
-
localDir
-
enableRecursiveSubmoduleProcessing
public void enableRecursiveSubmoduleProcessing() -
calculateChangelog
Add behaviour "Calculate changelog against specific branch"- Parameters:
remote
- Remote to compare withbranch
- Branch to compare with- Returns:
- this, to allow function chaining
-
commitAuthorInChangelog
Add behaviour "Use commit author in changelog"- Returns:
- this, to allow function chaining
-
cleanAfterCheckout
Add behaviour "Clean after checkout"- Returns:
- this, to allow function chaining
-
cleanBeforeCheckout
Add behaviour "Clean before checkout"- Returns:
- this, to allow function chaining
-
createTagForBuild
Add behaviour "Create tag for every build"- Returns:
- this, to allow function chaining
-
customScmName
Add behaviour "Custom SCM name"- Parameters:
name
- Custom name- Returns:
- this, to allow function chaining
-
customNameAndMail
Add behaviour "Custom user name/e-mail address"- Parameters:
name
- Custom name- Returns:
- this, to allow function chaining
-
sparseCheckout
Add behaviour "Sparse checkout"- Returns:
- behaviour, to access .addPath() method
-
advancedClone
Add behaviour "Advanced clone behaviours"- Returns:
- behaviour, to access its method
-
advancedCheckout
Add behaviour "Advanced checkout behaviours"- Returns:
- behaviour, to access its method
-
chooseBuildStrategy
Select strategy for choosing what to build- Parameters:
strategy
- Strategy to use ("Default" || "Inverse")- Returns:
- this, to allow function chaining
-
chooseBuildStrategy
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
-
remoteName
-
repositoryBrowser
Select repository browser type- Parameters:
name
- Type of repository browser- Returns:
- this, to allow function chaining
-
urlRepositoryBrowser
Set URL for repository browser- Parameters:
url
- URL to be set- Returns:
- this, to allow function chaining
-
mergeBeforeBuild
Add behaviour "Merge before build"- Returns:
- behaviour, to access its method
-
addBehaviour
-