Package org.jenkinsci.test.acceptance.po
Class WorkflowJob
-
- All Implemented Interfaces:
CapybaraPortingLayer
public class WorkflowJob extends Job
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
CapybaraPortingLayerImpl.Finder<R>, CapybaraPortingLayerImpl.Resolver
-
-
Field Summary
Fields Modifier and Type Field Description Control
sandbox
Control
script
-
Fields inherited from class org.jenkinsci.test.acceptance.po.Job
concurrentBuild, controller, publishers
-
Fields inherited from class org.jenkinsci.test.acceptance.po.TopLevelItem
name
-
Fields inherited from class org.jenkinsci.test.acceptance.po.PageObject
jsonParser, url
-
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
Constructors Constructor Description WorkflowJob(com.google.inject.Injector injector, URL url, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
copyResourceStep(String filePath)
void
delete()
Deletes the current job.void
setJenkinsFileRepository(String gitRepositoryUrl, String credentialsKey)
Selects the location of the Jenkinsfile to be a Git repository with the specified URL.-
Methods inherited from class org.jenkinsci.test.acceptance.po.Job
addBatchStep, addBuildStep, addBuildWrapper, addParameter, addPreBuildStep, addPublisher, addPublisher, addShellStep, addShellStep, addTrigger, build, copyDir, copyFile, copyResource, copyResource, copyResource, copyResourceBatch, copyResourceShell, disable, disabled, editPublisher, getBuildUrl, getLastBuild, getNextBuildNumber, getParameters, getPublisher, getWorkspace, pollScm, removeFirstBuildStep, scheduleBuild, scheduleBuild, setLabelExpression, shouldBeTiedToLabel, shouldHaveBuiltOnOneOfNNodes, startBuild, startBuild, useCustomWorkspace, useScm
-
Methods inherited from class org.jenkinsci.test.acceptance.po.TopLevelItem
as, description, equals, getDescription, getDisplayName, hashCode, renameTo, setDescription, setDescription, toString
-
Methods inherited from class org.jenkinsci.test.acceptance.po.ContainerPageObject
action, action, getConfigUrl, getJson, getJson, getJsonApiUrl, getNavigationLinks
-
Methods inherited from class org.jenkinsci.test.acceptance.po.ConfigurablePageObject
apply, configure, configure, configure, configure, ensureConfigPage, getFormName, getSubmitButtonText, save
-
Methods inherited from class org.jenkinsci.test.acceptance.po.PageObject
control, control, createPageArea, createRandomName, getContext, getJenkins, open, url, url, visit
-
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
-
-
-
-
Method Detail
-
delete
public void delete()
Description copied from class:Job
Deletes the current job.
-
setJenkinsFileRepository
public void setJenkinsFileRepository(String gitRepositoryUrl, String credentialsKey)
Selects the location of the Jenkinsfile to be a Git repository with the specified URL. The provided credentials key is used to connect to the Git repository.- Parameters:
gitRepositoryUrl
- the URL to the Git repository that contains the JenkinsfilecredentialsKey
- the key of the credentials to be used to connect to the repository
-
-