de.smartics.ci.comm.hudson.command
Class HudsonGenericJobCommand
java.lang.Object
de.smartics.ci.comm.command.AbstractCommand<T>
de.smartics.ci.comm.command.AbstractJobCommand<T>
de.smartics.ci.comm.command.AbstractGenericJobCommand<T>
de.smartics.ci.comm.hudson.command.AbstractHudsonApiJob<HudsonGenericJobCommand>
de.smartics.ci.comm.hudson.command.HudsonGenericJobCommand
-
All Implemented Interfaces:
-
Command<
HudsonGenericJobCommand>
-
public final class HudsonGenericJobCommand
-
extends
AbstractHudsonApiJob<
HudsonGenericJobCommand>
Check status job command.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HudsonGenericJobCommand
public HudsonGenericJobCommand(String jobName)
-
Default constructor.
-
Parameters:
-
jobName
- the name of the job that shall be checked.
HudsonGenericJobCommand
public HudsonGenericJobCommand()
-
Default constructor. Sets jobName to null. Must be set before using this command.
setCiXmlJobApiUrl
public void setCiXmlJobApiUrl(String ciXmlJobApiUrl)
-
Sets the ci xml job api URL.
-
-
Parameters:
-
ciXmlJobApiUrl
- the ci xml job api URL.
setResponseCheckingRegexp
public void setResponseCheckingRegexp(String regexp)
-
Sets the regexp used to check if the response is valid. If the regexp matches the response is treated as OK (true) but only if the response code (HTTP response code) is 2xx or 3xx.
-
-
Parameters:
-
regexp
- the regexp used to check the response.
execute
public void execute(CiSystem target)
throws CommandException
-
Description copied from class:
AbstractGenericJobCommand
-
Executes the command.
-
-
Specified by:
-
execute
in interface
Command<HudsonGenericJobCommand>
-
Specified by:
-
execute
in class
AbstractGenericJobCommand<HudsonGenericJobCommand>
-
-
Parameters:
-
target
- the target to execute the command against.
-
Throws:
-
CommandException
- signals problems encountered while executing the command.
checkResponseString
protected void checkResponseString(String response)
throws CommandException
-
Check the response.
-
-
Overrides:
-
checkResponseString
in class
AbstractHudsonApiJob<HudsonGenericJobCommand>
-
-
Parameters:
-
response
- the response.
-
Throws:
-
CommandException
- when command failed.
Copyright © 2012
Kronseder & Reiner GmbH - smartics. All Rights Reserved.