Class ComputeEngineComputerLauncher
java.lang.Object
hudson.slaves.ComputerLauncher
com.google.jenkins.plugins.computeengine.ComputeEngineComputerLauncher
- All Implemented Interfaces:
ExtensionPoint,Describable<ComputerLauncher>
- Direct Known Subclasses:
ComputeEngineLinuxLauncher,ComputeEngineWindowsLauncher
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final DurationDelay between SSH authentication retries.protected static final intMaximum number of SSH authentication attempts before giving up.protected final booleanFields inherited from class hudson.slaves.ComputerLauncher
LIST -
Constructor Summary
ConstructorsConstructorDescriptionComputeEngineComputerLauncher(String cloudName, String insertOperationId, String zone, boolean useInternalAddress) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.trilead.ssh2.ConnectionconnectToSsh(ComputeEngineComputer computer, TaskListener listener) protected abstract Loggerprotected abstract Stringbooleanvoidlaunch(SlaveComputer slaveComputer, TaskListener listener) static voidlog(Logger logger, Level level, TaskListener listener, String message) static voidprotected voidlogException(ComputeEngineComputer computer, TaskListener listener, String message, Throwable exception) protected voidlogInfo(ComputeEngineComputer computer, TaskListener listener, String message) protected voidlogSevere(ComputeEngineComputer computer, TaskListener listener, String message) protected voidlogWarning(ComputeEngineComputer computer, TaskListener listener, String message) protected abstract Optional<com.trilead.ssh2.Connection> setupConnection(ComputeEngineInstance node, ComputeEngineComputer computer, TaskListener listener) Methods inherited from class hudson.slaves.ComputerLauncher
afterDisconnect, afterDisconnect, beforeDisconnect, beforeDisconnect, checkJavaVersion, isLaunchSupported, launchMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Describable
getDescriptor
-
Field Details
-
BOOTSTRAP_AUTH_TRIES
protected static final int BOOTSTRAP_AUTH_TRIESMaximum number of SSH authentication attempts before giving up. Applies to both Linux and Windows launchers.Configurable via system property
com.google.jenkins.plugins.computeengine.ComputeEngineComputerLauncher.bootstrapAuthTries. Default:30.- See Also:
-
BOOTSTRAP_AUTH_SLEEP_DURATION
Delay between SSH authentication retries. Applies to both Linux and Windows launchers.Configurable via system property
com.google.jenkins.plugins.computeengine.ComputeEngineComputerLauncher.bootstrapAuthSleepDuration. Default:15s.- See Also:
-
useInternalAddress
protected final boolean useInternalAddress
-
-
Constructor Details
-
ComputeEngineComputerLauncher
-
-
Method Details
-
log
-
log
public static void log(Logger logger, Level level, TaskListener listener, String message, Throwable exception) -
logException
protected void logException(ComputeEngineComputer computer, TaskListener listener, String message, Throwable exception) -
logInfo
-
logWarning
-
logSevere
-
getLogger
-
launch
- Overrides:
launchin classComputerLauncher
-
setupConnection
protected abstract Optional<com.trilead.ssh2.Connection> setupConnection(ComputeEngineInstance node, ComputeEngineComputer computer, TaskListener listener) throws Exception - Throws:
Exception
-
getPathSeparator
-
connectToSsh
protected com.trilead.ssh2.Connection connectToSsh(ComputeEngineComputer computer, TaskListener listener) throws Exception - Throws:
Exception
-
isUseInternalAddress
public boolean isUseInternalAddress()
-