public interface OntrackDSLFacade
Modifier and Type | Method and Description |
---|---|
BranchFacade |
branch(String project,
String branch)
Gets a branch
|
BuildFacade |
build(String projectName,
String branchName,
String buildName)
Gets a build
|
String |
getAppVersion()
Gets the version of the remote app version
|
Object |
getDSLRoot()
Gets the root object to inject as
ontrack into the
DSL scripts. |
String |
getVersion()
Version of this facade
|
Object |
graphQLQuery(String query,
Map<String,?> vars)
Runs an arbitrary GraphQL query
|
void |
onClientException(Exception exception,
Consumer<String> handler)
Catching client exceptions
|
<T> T |
onNotFoundException(Exception exception,
Supplier<T> handler)
Catching not found exceptions
|
ProjectFacade |
project(String project)
Gets a project
|
String getVersion()
OntrackConfiguration.getOntrackVersion()
,
OntrackConfiguration.VERSION_3
,
OntrackConfiguration.VERSION_4
Object getDSLRoot()
ontrack
into the
DSL scripts.void onClientException(Exception exception, Consumer<String> handler)
exception
- Exception to managehandler
- Handler called with the exception message if the exception is a client exception<T> T onNotFoundException(Exception exception, Supplier<T> handler)
T
- Type of object returned by the handlerexception
- Exception to managehandler
- Handler called if the exception is a "not found" exceptionBuildFacade build(String projectName, String branchName, String buildName)
projectName
- Name of the projectbranchName
- Name of the branchbuildName
- Name of the buildBranchFacade branch(String project, String branch)
project
- Name of the projectbranch
- Name of the branchProjectFacade project(String project)
project
- Name of the projectObject graphQLQuery(String query, Map<String,?> vars)
query
- GraphQL queryvars
- Variables for the queryString getAppVersion()
Copyright © 2016–2023. All rights reserved.