Provides a minimum standard interface a Jervis remote requires. Throughout Jervis these functions will be called on the remote. It is recommended that only the functions in this interface should be used by Job DSL plugin scripts when accessing a remote. Failure to do so risks the flexibility and portability of switching remote sources.
Type Params | Return Type | Name and description |
---|---|---|
|
List |
branches(String project) Query a remote project for a list of branches. |
|
String |
getCloneUrl() Repositories will be cloned from this base Git URI. |
|
String |
getFile(String project, String file_path) Get the contents of a file in a remote git project for a given reference. |
|
String |
getFile(String project, String file_path, String ref) Get the contents of a file in a remote git project for a given reference. |
|
ArrayList |
getFolderListing(String project) List the contents of the root directory of the default branch. |
|
ArrayList |
getFolderListing(String project, String dir_path) List a the contents of a folder path in a project of the default branch. |
|
ArrayList |
getFolderListing(String project, String dir_path, String ref) Get list a file path in a project for the given reference. |
|
String |
getWebUrl() A web interface to browse repository code. |
|
String |
toString() This method is used by Jervis to output friendly messages including the remote. |
Query a remote project for a list of branches.
Repositories will be cloned from this base Git URI.
Get the contents of a file in a remote git project for a given reference. Uses the default branch. Most commonly the file requested will be the Jervis YAML file.
Get the contents of a file in a remote git project for a given reference. Most commonly the file requested will be the Jervis YAML file.
List the contents of the root directory of the default branch. This will typically be used to list the contents of the root directory for the reference so that build scripts can be generated from the list.
List a the contents of a folder path in a project of the default branch. This will typically be used to list the contents of the root directory for the reference so that build scripts can be generated from the list.
Get list a file path in a project for the given reference. This will typically be used to list the contents of the root directory for the reference so that build scripts can be generated from the list.
A web interface to browse repository code.
This method is used by Jervis to output friendly messages including the remote.