Class General
java.lang.Object
org.eluder.coveralls.maven.plugin.service.AbstractServiceSetup
org.eluder.coveralls.maven.plugin.service.General
- All Implemented Interfaces:
ServiceSetup
General implementation for any continuous integration service that provides the required environment properties.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the branch.Gets the builds the number.Gets the builds the url.getName()Gets the name.Gets the pull request.booleanChecks if is selected.Methods inherited from class AbstractServiceSetup
addProperty, getEnvironment, getJobId, getProperty
-
Field Details
-
CI_NAME
-
CI_BUILD_NUMBER
-
CI_BUILD_URL
-
CI_BRANCH
-
CI_PULL_REQUEST
-
-
Constructor Details
-
General
-
-
Method Details
-
isSelected
public boolean isSelected()Description copied from interface:ServiceSetupChecks if is selected.- Returns:
trueif this service is selected, otherwisefalse
-
getName
-
getBuildNumber
Description copied from interface:ServiceSetupGets the builds the number.- Specified by:
getBuildNumberin interfaceServiceSetup- Overrides:
getBuildNumberin classAbstractServiceSetup- Returns:
- service build number, or
nullif not defined
-
getBuildUrl
Description copied from interface:ServiceSetupGets the builds the url.- Specified by:
getBuildUrlin interfaceServiceSetup- Overrides:
getBuildUrlin classAbstractServiceSetup- Returns:
- service build url, or
nullif not defined
-
getBranch
Description copied from interface:ServiceSetupGets the branch.- Specified by:
getBranchin interfaceServiceSetup- Overrides:
getBranchin classAbstractServiceSetup- Returns:
- git branch name, or
nullif not defined
-
getPullRequest
Description copied from interface:ServiceSetupGets the pull request.- Specified by:
getPullRequestin interfaceServiceSetup- Overrides:
getPullRequestin classAbstractServiceSetup- Returns:
- pull request identifier, or
nullif not defined
-