Class EphemeralSSHUserPrivateKey

java.lang.Object
io.jenkins.plugins.ephemeral_credentials.EphemeralCredentialSpec
io.jenkins.plugins.ephemeral_credentials.EphemeralSSHUserPrivateKey
All Implemented Interfaces:
Serializable

public class EphemeralSSHUserPrivateKey extends EphemeralCredentialSpec

SSH Username with private key. Unlike the other credential types, this one pulls in a plugin (SSH Credentials) beyond what this plugin otherwise needs - so it's declared as an optional Maven/HPI dependency: installations that never use ephemeralSSHUserPrivateKey don't need it installed at all.

The constructor deliberately touches BasicSSHUserPrivateKey (a class literal is enough to force resolution) so that a missing plugin fails immediately, with a clear message, at the point the pipeline author declares this spec - not deep inside materialize(java.util.Map<java.lang.String, java.lang.Object>) after a human has already answered an input prompt for nothing.

See Also: