Class AbstractServiceSetup

java.lang.Object
org.eluder.coveralls.maven.plugin.service.AbstractServiceSetup
All Implemented Interfaces:
ServiceSetup
Direct Known Subclasses:
Appveyor, Bamboo, Circle, General, Jenkins, Shippable, Travis, Wercker

public abstract class AbstractServiceSetup extends Object implements ServiceSetup
Convenient base class for service setups.
  • Constructor Details

    • AbstractServiceSetup

      protected AbstractServiceSetup(Map<String,String> env)
  • Method Details

    • getJobId

      public String getJobId()
      Description copied from interface: ServiceSetup
      Gets the job id.
      Specified by:
      getJobId in interface ServiceSetup
      Returns:
      service job id, or null if not defined
    • getBuildNumber

      public String getBuildNumber()
      Description copied from interface: ServiceSetup
      Gets the builds the number.
      Specified by:
      getBuildNumber in interface ServiceSetup
      Returns:
      service build number, or null if not defined
    • getBuildUrl

      public String getBuildUrl()
      Description copied from interface: ServiceSetup
      Gets the builds the url.
      Specified by:
      getBuildUrl in interface ServiceSetup
      Returns:
      service build url, or null if not defined
    • getBranch

      public String getBranch()
      Description copied from interface: ServiceSetup
      Gets the branch.
      Specified by:
      getBranch in interface ServiceSetup
      Returns:
      git branch name, or null if not defined
    • getPullRequest

      public String getPullRequest()
      Description copied from interface: ServiceSetup
      Gets the pull request.
      Specified by:
      getPullRequest in interface ServiceSetup
      Returns:
      pull request identifier, or null if not defined
    • getEnvironment

      public Properties getEnvironment()
      Description copied from interface: ServiceSetup
      Gets the environment.
      Specified by:
      getEnvironment in interface ServiceSetup
      Returns:
      environment related to service, or null if not defined
    • getProperty

      protected final String getProperty(String name)
    • addProperty

      protected final void addProperty(Properties properties, String name, String value)