public class MarathonBuilderUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
MARATHON_JSON
Default Marathon Application Definition file.
|
static String |
MARATHON_RENDERED_JSON
Default filepath for the rendered JSON that was sent to the Marathon instance.
|
| Constructor and Description |
|---|
MarathonBuilderUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends com.cloudbees.plugins.credentials.Credentials> |
getJenkinsCredentials(String credentialsId,
Class<T> credentialsClass)
Get the credentials identified by the given id from the Jenkins credential store.
|
static org.jenkinsci.plugins.plaincredentials.StringCredentials |
getTokenCredentials(String credentialsId)
Get the token from the credentials identified by the given id.
|
static com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials |
getUsernamePasswordCredentials(String credentialsId)
Get the user/pass from the credentials identified by the given id.
|
static String |
rmSlashFromUrl(String url)
Remove the trailing slash from url.
|
public static final String MARATHON_JSON
public static final String MARATHON_RENDERED_JSON
public static String rmSlashFromUrl(String url)
url - the URLpublic static org.jenkinsci.plugins.plaincredentials.StringCredentials getTokenCredentials(String credentialsId)
credentialsId - The id for the credentialspublic static com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials getUsernamePasswordCredentials(String credentialsId)
credentialsId - The id for the credentialspublic static <T extends com.cloudbees.plugins.credentials.Credentials> T getJenkinsCredentials(String credentialsId, Class<T> credentialsClass)
T - credential typecredentialsId - The id for the credentialscredentialsClass - The class of credentials to returnCopyright © 2016–2017. All rights reserved.