public class MarathonBuilderUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_CONTAINER_FIELD
The field off the root App JSON that holds container (docker, etc.) information.
|
static String |
JSON_DOCKER_FIELD
The field contained within the "container" JSON object that holds the docker information.
|
static String |
JSON_DOCKER_IMAGE_FIELD
The docker image field.
|
static String |
JSON_EMPTY_CONTAINER
Empty container JSON object.
|
static String |
JSON_ID_FIELD
Application Id field; available from the root of the App JSON.
|
static String |
JSON_URI_FIELD
URIs field; available from the root of the App JSON.
|
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 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 final String JSON_CONTAINER_FIELD
public static final String JSON_DOCKER_FIELD
public static final String JSON_DOCKER_IMAGE_FIELD
public static final String JSON_ID_FIELD
public static final String JSON_URI_FIELD
public static final String JSON_EMPTY_CONTAINER
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 credentialsCopyright © 2004-2016. All Rights Reserved.