public final class UtilitiesJenkins extends Object
Modifier and Type | Method and Description |
---|---|
static String |
cleanJobName(String jobName)
Returns only the first part of the job name.
|
static com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials |
getCredentials(URL url,
String credentialsId)
Returns The first suitable credential for the id.
|
public static com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials getCredentials(URL url, String credentialsId)
url
- Host to associate the credentials withcredentialsId
- The id of the credentialspublic static String cleanJobName(String jobName)
jobName
- the jenkins build name to be cleaned for BDBA useCopyright © 2016–2023. All rights reserved.