Methods
-
connect(browser, done)
-
Connect to the SSE Gateway.
DO NOT CALL: done automatically in the globals.
Parameters:
Name Type Description browserdone -
createBranch(branchName, pathToRepo)
-
Create a new branch in a given repository
Parameters:
Name Type Description branchNameString name of the branch
pathToRepoString the route to the repository
Returns:
- Type
- *
-
createCommit(pathToRepo, files)
-
Create and return a commit promise.
Parameters:
Name Type Description pathToRepoString the route to the repository
filesArray to be committed
-
createFile(pathToRepo, fileName, options)
-
Creates a file and adds it to repo.
FIXME: doesnt seem to actally git add the file, altohugh it does create the commit hash.
Parameters:
Name Type Description pathToRepoString the route to the repository
fileNameString name of the file
optionsObject Properties
Name Type Description contentsstring optional contents to write to file.
messagestring optional commit message.
Returns:
- Type
- *
-
createRepo(fromDir, inDir)
-
create a new git repository
Parameters:
Name Type Description fromDirString source path
inDirString destination path
-
disable(category)
-
disable debug for a specific category
Parameters:
Name Type Description category -
disconnect( [onDisconnected])
-
Disconnect from the SSE Gateway.
DO NOT CALL: done automatically in the globals.
Parameters:
Name Type Argument Description onDisconnectedfunction <optional>
callback to be invoke when finished, will pass the sse event to the callback
-
enable(category)
-
enable debug for a specific category
Parameters:
Name Type Description category -
init(pathToRepo, onInit)
-
Generic wrapper aroung NodeGit
Parameters:
Name Type Description pathToRepoString onInitfunction -
setDEBUG()
-
Turn on debug
-
urlEndsWith(expected [, message])
-
Checks if the current url ends with the given value.
this.demoTest = function (client) { browser.assert.urlEndsWith('/blue/organizations/jenkins/my-pipeline/activity'); };Parameters:
Name Type Argument Description expectedstring The expected url.
messagestring <optional>
Optional log message to display in the output. If missing, one is displayed by default.