org.jfrog.build.api.builder
Class BuildInfoMavenBuilder

java.lang.Object
  extended by org.jfrog.build.api.builder.BuildInfoBuilder
      extended by org.jfrog.build.api.builder.BuildInfoMavenBuilder

public class BuildInfoMavenBuilder
extends BuildInfoBuilder

A temporary builder for the build class specifically for Maven extractor.

NOTE! This class should be merged to BuildInfoBuilder once fully tested.


Field Summary
 
Fields inherited from class org.jfrog.build.api.builder.BuildInfoBuilder
agent, artifactoryPluginVersion, artifactoryPrincipal, buildAgent, buildRetention, durationMillis, governance, issues, licenseControl, modules, name, number, parentName, parentNumber, principal, properties, runParameters, started, statuses, type, url, vcsRevision, vcsUrl, version
 
Constructor Summary
BuildInfoMavenBuilder(java.lang.String name)
           
 
Method Summary
 BuildInfoMavenBuilder addModule(Module module)
          Adds the given module to the modules list
 BuildInfoMavenBuilder addProperty(java.lang.Object key, java.lang.Object value)
          Adds the given property to the properties object
 BuildInfoMavenBuilder addStatus(PromotionStatus promotionStatus)
           
 BuildInfoMavenBuilder agent(Agent agent)
          Sets the agent of the build
 BuildInfoMavenBuilder artifactoryPluginVersion(java.lang.String artifactoryPluginVersion)
          Sets the Artifactory plugin version of the build
 BuildInfoMavenBuilder artifactoryPrincipal(java.lang.String artifactoryPrincipal)
          Sets the Artifactory principal of the build
 Build build()
          Assembles the build class
 BuildInfoMavenBuilder buildAgent(BuildAgent buildAgent)
          Sets the build agent of the build
 BuildInfoMavenBuilder buildRetention(BuildRetention buildRetention)
          Sets the post build retention period
 BuildInfoMavenBuilder durationMillis(long durationMillis)
          Sets the duration milliseconds of the build
 BuildInfoMavenBuilder governance(Governance governance)
           
 BuildInfoMavenBuilder issues(Issues issues)
           
 BuildInfoMavenBuilder licenseControl(LicenseControl licenseControl)
          Sets the violation notifications of the build
 BuildInfoMavenBuilder modules(java.util.concurrent.ConcurrentHashMap<java.lang.String,Module> modules)
          Sets the modules of the build
 BuildInfoMavenBuilder name(java.lang.String name)
          Sets the name of the build
 BuildInfoMavenBuilder number(java.lang.String number)
          Sets the number of the build
 BuildInfoMavenBuilder parentName(java.lang.String parentName)
          Sets the parent build name of the build
 BuildInfoMavenBuilder parentNumber(java.lang.String parentNumber)
          Sets the parent build number of the build
 BuildInfoMavenBuilder principal(java.lang.String principal)
          Sets the principal of the build
 BuildInfoMavenBuilder properties(java.util.Properties properties)
          Sets the properties of the build
 BuildInfoMavenBuilder started(java.lang.String started)
          Sets the started time of the build
 BuildInfoMavenBuilder startedDate(java.util.Date startedDate)
          Sets the started time of the build
 BuildInfoMavenBuilder statuses(java.util.List<PromotionStatus> statuses)
           
 BuildInfoMavenBuilder type(BuildType type)
          Sets the type of the build
 BuildInfoMavenBuilder url(java.lang.String url)
          Sets the URL of the build
 BuildInfoMavenBuilder vcsRevision(java.lang.String vcsRevision)
          Sets the vcs revision (format is vcs specific)
 BuildInfoMavenBuilder vcsUrl(java.lang.String vcsUrl)
          Sets the vcs URL (format is vcs specific)
 BuildInfoMavenBuilder version(java.lang.String version)
          Sets the version of the build
 
Methods inherited from class org.jfrog.build.api.builder.BuildInfoBuilder
addRunParameters, buildRunParameters, modules
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildInfoMavenBuilder

public BuildInfoMavenBuilder(java.lang.String name)
Method Detail

build

public Build build()
Assembles the build class

Overrides:
build in class BuildInfoBuilder
Returns:
Assembled build

version

public BuildInfoMavenBuilder version(java.lang.String version)
Sets the version of the build

Overrides:
version in class BuildInfoBuilder
Parameters:
version - Build version
Returns:
Builder instance

name

public BuildInfoMavenBuilder name(java.lang.String name)
Sets the name of the build

Overrides:
name in class BuildInfoBuilder
Parameters:
name - Build name
Returns:
Builder instance

number

public BuildInfoMavenBuilder number(java.lang.String number)
Sets the number of the build

Overrides:
number in class BuildInfoBuilder
Parameters:
number - Build number
Returns:
Builder instance

type

public BuildInfoMavenBuilder type(BuildType type)
Sets the type of the build

Overrides:
type in class BuildInfoBuilder
Parameters:
type - Build type
Returns:
Builder instance

agent

public BuildInfoMavenBuilder agent(Agent agent)
Sets the agent of the build

Overrides:
agent in class BuildInfoBuilder
Parameters:
agent - Build agent
Returns:
Builder instance

buildAgent

public BuildInfoMavenBuilder buildAgent(BuildAgent buildAgent)
Sets the build agent of the build

Overrides:
buildAgent in class BuildInfoBuilder
Parameters:
buildAgent - The build agent
Returns:
Builder instance

started

public BuildInfoMavenBuilder started(java.lang.String started)
Sets the started time of the build

Overrides:
started in class BuildInfoBuilder
Parameters:
started - Build started time
Returns:
Builder instance

startedDate

public BuildInfoMavenBuilder startedDate(java.util.Date startedDate)
Sets the started time of the build

Overrides:
startedDate in class BuildInfoBuilder
Parameters:
startedDate - Build started date
Returns:
Builder instance

durationMillis

public BuildInfoMavenBuilder durationMillis(long durationMillis)
Sets the duration milliseconds of the build

Overrides:
durationMillis in class BuildInfoBuilder
Parameters:
durationMillis - Build duration milliseconds
Returns:
Builder instance

principal

public BuildInfoMavenBuilder principal(java.lang.String principal)
Sets the principal of the build

Overrides:
principal in class BuildInfoBuilder
Parameters:
principal - Build principal
Returns:
Builder instance

artifactoryPrincipal

public BuildInfoMavenBuilder artifactoryPrincipal(java.lang.String artifactoryPrincipal)
Sets the Artifactory principal of the build

Overrides:
artifactoryPrincipal in class BuildInfoBuilder
Parameters:
artifactoryPrincipal - Build Artifactory principal
Returns:
Builder instance

artifactoryPluginVersion

public BuildInfoMavenBuilder artifactoryPluginVersion(java.lang.String artifactoryPluginVersion)
Sets the Artifactory plugin version of the build

Overrides:
artifactoryPluginVersion in class BuildInfoBuilder
Parameters:
artifactoryPluginVersion - Build Artifactory plugin version
Returns:
Builder instance

url

public BuildInfoMavenBuilder url(java.lang.String url)
Sets the URL of the build

Overrides:
url in class BuildInfoBuilder
Parameters:
url - Build URL
Returns:
Builder instance

parentName

public BuildInfoMavenBuilder parentName(java.lang.String parentName)
Sets the parent build name of the build

Overrides:
parentName in class BuildInfoBuilder
Parameters:
parentName - Build parent build name
Returns:
Builder instance

parentNumber

public BuildInfoMavenBuilder parentNumber(java.lang.String parentNumber)
Sets the parent build number of the build

Overrides:
parentNumber in class BuildInfoBuilder
Parameters:
parentNumber - Build parent build number
Returns:
Builder instance

vcsRevision

public BuildInfoMavenBuilder vcsRevision(java.lang.String vcsRevision)
Sets the vcs revision (format is vcs specific)

Overrides:
vcsRevision in class BuildInfoBuilder
Parameters:
vcsRevision - The vcs revision
Returns:
Builder instance

vcsUrl

public BuildInfoMavenBuilder vcsUrl(java.lang.String vcsUrl)
Sets the vcs URL (format is vcs specific)

Overrides:
vcsUrl in class BuildInfoBuilder
Parameters:
vcsUrl - The vcs revision
Returns:
Builder instance

modules

public BuildInfoMavenBuilder modules(java.util.concurrent.ConcurrentHashMap<java.lang.String,Module> modules)
Sets the modules of the build

Overrides:
modules in class BuildInfoBuilder
Parameters:
modules - Build modules
Returns:
Builder instance

statuses

public BuildInfoMavenBuilder statuses(java.util.List<PromotionStatus> statuses)
Overrides:
statuses in class BuildInfoBuilder

addStatus

public BuildInfoMavenBuilder addStatus(PromotionStatus promotionStatus)
Overrides:
addStatus in class BuildInfoBuilder

licenseControl

public BuildInfoMavenBuilder licenseControl(LicenseControl licenseControl)
Sets the violation notifications of the build

Overrides:
licenseControl in class BuildInfoBuilder
Parameters:
licenseControl - Build violation recipients.
Returns:
Builder instance

buildRetention

public BuildInfoMavenBuilder buildRetention(BuildRetention buildRetention)
Sets the post build retention period

Overrides:
buildRetention in class BuildInfoBuilder
Parameters:
buildRetention - Build violation recipients.
Returns:
Builder instance

addModule

public BuildInfoMavenBuilder addModule(Module module)
Adds the given module to the modules list

Overrides:
addModule in class BuildInfoBuilder
Parameters:
module - Module to add
Returns:
Builder instance

properties

public BuildInfoMavenBuilder properties(java.util.Properties properties)
Sets the properties of the build

Overrides:
properties in class BuildInfoBuilder
Parameters:
properties - Build properties
Returns:
Builder instance

addProperty

public BuildInfoMavenBuilder addProperty(java.lang.Object key,
                                         java.lang.Object value)
Adds the given property to the properties object

Overrides:
addProperty in class BuildInfoBuilder
Parameters:
key - Key of property to add
value - Value of property to add
Returns:
Builder instance

issues

public BuildInfoMavenBuilder issues(Issues issues)
Overrides:
issues in class BuildInfoBuilder

governance

public BuildInfoMavenBuilder governance(Governance governance)
Overrides:
governance in class BuildInfoBuilder