Package io.jenkins.plugins.casc
Class SecretSourceResolver
java.lang.Object
io.jenkins.plugins.casc.SecretSourceResolver
Resolves secret variables and converts escaped internal variables.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionEncodes String so that it can be safely represented in the YAML after export.static String
resolve
(ConfigurationContext context, String toInterpolate) Deprecated.Resolve string with potential secrets
-
Constructor Details
-
SecretSourceResolver
-
-
Method Details
-
encode
Encodes String so that it can be safely represented in the YAML after export.- Parameters:
toEncode
- String to encode- Returns:
- Encoded string
- Since:
- 1.25
-
resolve
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public static String resolve(ConfigurationContext context, String toInterpolate) Deprecated.useresolve(String)
} instead.Resolve string with potential secrets- Parameters:
context
- Configuration contexttoInterpolate
- potential variables that need to revealed- Returns:
- original string with any secrets that could be resolved if secrets could not be resolved they will be defaulted to default value defined by ':-', otherwise default to empty String. Secrets are defined as anything enclosed by '${}'
- Since:
- 1.42
-
resolve
Resolve string with potential secrets- Parameters:
toInterpolate
- potential variables that need to revealed- Returns:
- original string with any secrets that could be resolved if secrets could not be resolved they will be defaulted to default value defined by ':-', otherwise default to empty String. Secrets are defined as anything enclosed by '${}'
-
resolve(String)
} instead.