Class MavenModuleSet
- java.lang.Object
-
- org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
-
- org.jenkinsci.test.acceptance.po.PageObject
-
- org.jenkinsci.test.acceptance.po.ConfigurablePageObject
-
- org.jenkinsci.test.acceptance.po.ContainerPageObject
-
- org.jenkinsci.test.acceptance.po.TopLevelItem
-
- org.jenkinsci.test.acceptance.po.Job
-
- org.jenkinsci.test.acceptance.plugins.maven.MavenModuleSet
-
- All Implemented Interfaces:
CapybaraPortingLayer
public class MavenModuleSet 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
goals
Control
version
-
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 MavenModuleSet(com.google.inject.Injector injector, URL url, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchCommandBuildStep
addBatchStep(String batch)
<T extends PostBuildStep>
TaddBuildSettings(Class<T> type)
Enables the specified settings for this job.<T extends PostBuildStep>
TaddBuildSettings(Class<T> type, Consumer<T> configuration)
Enables the specified settings for this job.<T extends BuildStep>
TaddBuildStep(Class<T> type)
ShellBuildStep
addShellStep(String shell)
MavenBuild
build(int buildNumber)
<T extends PostBuildStep>
TgetBuildSettings(Class<T> type)
Wrapper function to get a previously added build settings object.MavenBuild
getLastBuild()
MavenModule
module(String name)
MavenModuleSet
options(String options)
void
setGoals(String goals)
void
useDefaultMavenVersion()
Use the default maven version for a job.-
Methods inherited from class org.jenkinsci.test.acceptance.po.Job
addBuildWrapper, addParameter, addPreBuildStep, addPublisher, addPublisher, addShellStep, addTrigger, copyDir, copyFile, copyResource, copyResource, copyResource, copyResourceBatch, copyResourceShell, delete, disable, disabled, editPublisher, getBuildUrl, 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
-
options
public MavenModuleSet options(String options)
-
setGoals
public void setGoals(String goals)
-
addBuildSettings
public <T extends PostBuildStep> T addBuildSettings(Class<T> type, Consumer<T> configuration)
Enables the specified settings for this job. Settings (i.e. publishers) are stored in a list member to provide later access for modification. After the settings have been added they are configured with the specified configuration lambda. Afterwards, the job configuration page still is visible and not saved.- Type Parameters:
T
- the type of the settings- Parameters:
type
- the settings to configureconfiguration
- the additional configuration options for this job- See Also:
addBuildSettings(Class)
,Job.getPublisher(Class)
-
addBuildSettings
public <T extends PostBuildStep> T addBuildSettings(Class<T> type)
Enables the specified settings for this job. Settings (i.e. publishers) are stored in a list member to provide later access for modification. Afterwards, the job configuration page still is visible and not saved.- Type Parameters:
T
- the type of the settings- Parameters:
type
- the settings to configure- See Also:
addBuildSettings(Class)
,Job.getPublisher(Class)
-
getBuildSettings
public <T extends PostBuildStep> T getBuildSettings(Class<T> type)
Wrapper function to get a previously added build settings object.- Parameters:
type
- the type of the build settings to be retrieved- Returns:
- the build settings object
-
addBuildStep
public <T extends BuildStep> T addBuildStep(Class<T> type)
- Overrides:
addBuildStep
in classJob
-
addBatchStep
public BatchCommandBuildStep addBatchStep(String batch)
- Overrides:
addBatchStep
in classJob
-
addShellStep
public ShellBuildStep addShellStep(String shell)
- Overrides:
addShellStep
in classJob
-
module
public MavenModule module(String name)
-
build
public MavenBuild build(int buildNumber)
-
getLastBuild
public MavenBuild getLastBuild()
- Overrides:
getLastBuild
in classJob
-
useDefaultMavenVersion
public void useDefaultMavenVersion()
Use the default maven version for a job. Note that this maven version needs to be installed before this method is called. Additionally, at least 2 versions need to be installed. Otherwise the drop down menu is not shown and the default version is used.
-
-