public class KojiClient extends Object
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getBuildInfo(String buildId)
Retrieves information about a given build.
|
static KojiClient |
getKojiClient(String kojiInstanceURL)
Get the KojiClient Singleton instance.
|
String |
getKojiInstanceURL() |
Map<String,String> |
getLatestBuilds(String tag,
String pkg)
Gets latest builds.
|
String |
getSession()
Gets information about logged user.
|
List<Map<String,String>> |
listTaggedBuilds(org.jenkinsci.plugins.koji.xmlrpc.KojiClient.BuildParams buildParams)
Method for detailed queries.
|
KojiSession |
login(String userName,
String password)
Login to XML-RPC service using plain authentication.
|
String |
sayHello()
Greet the remote Koji instance and test the communication.
|
void |
setDebug(boolean debug) |
void |
setServerURL(String kojiInstanceURL) |
public String getKojiInstanceURL()
public static KojiClient getKojiClient(String kojiInstanceURL) throws MalformedURLException
kojiInstanceURL - URL of remote Koji instance.MalformedURLExceptionpublic KojiSession login(String userName, String password) throws org.apache.xmlrpc.XmlRpcException
userName - Usernamepassword - Passwordorg.apache.xmlrpc.XmlRpcException - In case issue with login happens.public Map<String,String> getLatestBuilds(String tag, String pkg) throws org.apache.xmlrpc.XmlRpcException
tag - Koji tagpkg - Koji packageorg.apache.xmlrpc.XmlRpcExceptionpublic Map<String,String> getBuildInfo(String buildId) throws org.apache.xmlrpc.XmlRpcException
buildId - BuildId can be Name-Version-Release (NVR) or numeric buildId.org.apache.xmlrpc.XmlRpcExceptionpublic String getSession()
public List<Map<String,String>> listTaggedBuilds(org.jenkinsci.plugins.koji.xmlrpc.KojiClient.BuildParams buildParams) throws org.apache.xmlrpc.XmlRpcException
buildParams - Accepts BuildParams object holding various properties.org.apache.xmlrpc.XmlRpcExceptionpublic String sayHello()
public void setServerURL(String kojiInstanceURL)
public void setDebug(boolean debug)
Copyright © 2004-2015. All Rights Reserved.