Credential Value Functions

For any groovy script that has access to the FLEXDEPLOY variable, there are methods for accessing the plain text values of a given credential id or name. Note that using these methods to grab the values for Endpoint-scoped credentials is prevented.

Method

Description

Method

Description

FLEXDEPLOY.getCredentialSecretTextValueById(credentialId)

Returns the plain text value String of the given Credential id. The id must belong to a credential of type Secret Text.

FLEXDEPLOY.getCredentialSecretTextValueByName(credentialName)

Returns the plain text value String of the given Credential name. The name must belong to a credential of type Secret Text.

FLEXDEPLOY.getCredentialValueById(credentialId)

Returns an object containing the plain text values depending on the credential type of the provided id.

Secret Text -> CredentialSecretTextValuePojo

SSH Key → CredentialSshKeyValuePojo

Certificate → CredentialCertificateValuePojo

FLEXDEPLOY.getCredentialValueByName(credentialName)

Returns an object containing the plain text values depending on the credential type of the provided name.

Secret Text -> CredentialSecretTextValuePojo

SSH Key → CredentialSshKeyValuePojo

Certificate → CredentialCertificateValuePojo

CredentialSecretTextValuePojo

Method

Description

Method

Description

getSecretText()

Returns the unencrypted String secret text value of this credential.

CredentialSshKeyValuePojo

Method

Description

Method

Description

getSshKey()

Returns the unencrypted private key value of this credential.

getSshKeyPassphrase()

Returns the unencrypted passphrase value of this credential.

CredentialCertificateValuePojo

Method

Description

Method

Description

getCertificate()

Returns the unencrypted certificate value of this credential.

getCertificatePassword()

Returns the unencrypted password value of this credential.

The following macros are not currently supported in the footer:
  • style