public class SecretRetriever extends Object
Constructor and Description |
---|
SecretRetriever() |
Modifier and Type | Method and Description |
---|---|
List<org.jenkinsci.plugins.plaincredentials.StringCredentials> |
getCredential()
Get All Secrets
|
String |
getSecretById(String secretId,
Run<?,?> run)
Get Jenkins secret by secretId
|
public String getSecretById(String secretId, Run<?,?> run)
secretId
- SecretId specified in Jenkins credential Managerpublic List<org.jenkinsci.plugins.plaincredentials.StringCredentials> getCredential()
Copyright © 2016–2022. All rights reserved.