de.smartics.ci.comm.hudson.command
Class HudsonUpdateJobCommand
java.lang.Object
de.smartics.ci.comm.command.AbstractCommand<T>
de.smartics.ci.comm.command.AbstractJobCommand<T>
de.smartics.ci.comm.command.AbstractUpdateJobCommand<HudsonUpdateJobCommand>
de.smartics.ci.comm.hudson.command.HudsonUpdateJobCommand
-
All Implemented Interfaces:
-
Command<
HudsonUpdateJobCommand>
-
public final class HudsonUpdateJobCommand
-
extends
AbstractUpdateJobCommand<
HudsonUpdateJobCommand>
Enable job command.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HudsonUpdateJobCommand
public HudsonUpdateJobCommand(String jobName,
String configString)
-
The default constructor.
-
Parameters:
-
jobName
- the name of the job that shall be created.
-
configString
- the configuration for the job / the config_xml as String.
HudsonUpdateJobCommand
public HudsonUpdateJobCommand()
-
Constructor setting jobName to null. Must be set later.
setConfigString
public void setConfigString(String configString)
-
Sets the configuration for the job / the config_xml as String.
-
-
Parameters:
-
configString
- the configuration for the job / the config_xml as String.
execute
public void execute(CiSystem target)
throws CommandException
-
Description copied from class:
AbstractUpdateJobCommand
-
Executes the command.
-
-
Specified by:
-
execute
in interface
Command<HudsonUpdateJobCommand>
-
Specified by:
-
execute
in class
AbstractUpdateJobCommand<HudsonUpdateJobCommand>
-
-
Parameters:
-
target
- the target to execute the command against.
-
Throws:
-
CommandException
- signals problems encountered while executing the command.
Copyright © 2012
Kronseder & Reiner GmbH - smartics. All Rights Reserved.