de.smartics.ci.config.load
Class HudsonJobConfigurationLoaderConfig.Builder

Package class diagram package HudsonJobConfigurationLoaderConfig.Builder
java.lang.Object
  extended by de.smartics.ci.config.load.HudsonJobConfigurationLoaderConfig.Builder
Enclosing class:
HudsonJobConfigurationLoaderConfig

public static final class HudsonJobConfigurationLoaderConfig.Builder
     
     
extends Object

Builder to help adding properties to the configuration instance.


Constructor Summary
HudsonJobConfigurationLoaderConfig.Builder()
           
 
Method Summary
 HudsonJobConfigurationLoaderConfig build()
          Creates the instance configured by this builder.
 HudsonJobConfigurationLoaderConfig.Builder withAddScmElementWithFullContent(boolean addScmElementWithFullContent)
          Sets the flag to control whether the scm element is to be added to the generated Job config.
 HudsonJobConfigurationLoaderConfig.Builder withRemoveCascadingChildrenNamesElement(boolean removeCascadingChildrenNamesElement)
          Sets the flag to control the removal of the cascadingChildrenNames element from the job configuration.
 HudsonJobConfigurationLoaderConfig.Builder withRemoveCascadingJobPropertiesElement(boolean removeCascadingJobPropertiesElement)
          Sets the flag to control the removal of the cascading-job-properties element from the job configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HudsonJobConfigurationLoaderConfig.Builder

public HudsonJobConfigurationLoaderConfig.Builder()
Method Detail

withAddScmElementWithFullContent

public HudsonJobConfigurationLoaderConfig.Builder withAddScmElementWithFullContent(boolean addScmElementWithFullContent)
Sets the flag to control whether the scm element is to be added to the generated Job config. xml with full content. The scm is an element in addition to the SCM configuration as an entry in the same document.

In some documents the element is expected to be stated redundantly. Some configurations allow to reference the SCM information of an entry element with an XPath expression. Adding an element with that expression is not controllable with this flag.

Parameters:
addScmElementWithFullContent - the flag to control whether the scm element is to be added to the generated Job config.
Returns:
a reference to this builder.

withRemoveCascadingChildrenNamesElement

public HudsonJobConfigurationLoaderConfig.Builder withRemoveCascadingChildrenNamesElement(boolean removeCascadingChildrenNamesElement)
Sets the flag to control the removal of the cascadingChildrenNames element from the job configuration.

The element is added by Hudson if the config.xml is retrieved. The presence of the element rejects the configuration from being pushed on the server.

Parameters:
removeCascadingChildrenNamesElement - the flag to control the removal of the cascadingChildrenNames element from the job configuration.
Returns:
a reference to this builder.

withRemoveCascadingJobPropertiesElement

public HudsonJobConfigurationLoaderConfig.Builder withRemoveCascadingJobPropertiesElement(boolean removeCascadingJobPropertiesElement)
Sets the flag to control the removal of the cascading-job-properties element from the job configuration.

The element is added by Hudson if the config.xml is retrieved. The presence of the element rejects the configuration from being pushed on the server.

Parameters:
removeCascadingJobPropertiesElement - the flag to control the removal of the cascading-job-properties element from the job configuration.
Returns:
a reference to this builder.

build

public HudsonJobConfigurationLoaderConfig build()
Creates the instance configured by this builder.

Returns:
the instance configured by this builder.


Copyright © 2012 Kronseder & Reiner GmbH - smartics. All Rights Reserved.