de.smartics.ci.config.hudson
Class HudsonConfigEntry
java.lang.Object
de.smartics.ci.config.hudson.AbstractHudsonConfigHelper
de.smartics.ci.config.hudson.HudsonConfigEntry
-
public final class HudsonConfigEntry
-
extends
AbstractHudsonConfigHelper
Helper to create Hudson configuration entry elements.
Constructor Summary |
HudsonConfigEntry(org.jdom.Document hudsonConfig) Default constructor. |
Method Summary |
void |
addEntry(org.jdom.Element entry) Adds the given entry to the document. |
void |
addScmConfig(ScmType scmType, String scmUrl) Adds information for the given SCM provider as an entry to the document. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HudsonConfigEntry
public HudsonConfigEntry(org.jdom.Document hudsonConfig)
-
Default constructor.
-
Parameters:
-
hudsonConfig
- the Hudson configuration XML file to add to.
addEntry
public void addEntry(org.jdom.Element entry)
throws org.jdom.JDOMException
-
Adds the given entry to the document.
-
-
Parameters:
-
entry
- the entry to add.
-
Throws:
-
org.jdom.JDOMException
- on any problem accessing the Hudson configuration XML document.
addScmConfig
public void addScmConfig(ScmType scmType,
String scmUrl)
throws org.jdom.JDOMException
-
Adds information for the given SCM provider as an entry to the document.
-
-
Parameters:
-
scmType
- the type of the SCM provider to add.
-
scmUrl
- the connection URL to the SCM server.
-
Throws:
-
org.jdom.JDOMException
- on any problem accessing the Hudson configuration XML document.
Copyright © 2012
Kronseder & Reiner GmbH - smartics. All Rights Reserved.