Class AllureServiceClient
java.lang.Object
com.cloudbees.cd.plugins.build.allure.client.AllureServiceClient
public class AllureServiceClient
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static okhttp3.MediaTypeJSON -
Constructor Summary
Constructors Constructor Description AllureServiceClient(java.lang.String serverUrl) -
Method Summary
Modifier and Type Method Description voidcreateProject(java.lang.String projectName)booleanisProjectExists(java.lang.String projectName)voidsendResults(java.lang.String projectName, java.util.ArrayList<java.io.File> reportFiles)
-
Field Details
-
JSON
public static final okhttp3.MediaType JSON
-
-
Constructor Details
-
AllureServiceClient
public AllureServiceClient(java.lang.String serverUrl) throws java.net.URISyntaxException- Throws:
java.net.URISyntaxException
-
-
Method Details
-
sendResults
public void sendResults(java.lang.String projectName, java.util.ArrayList<java.io.File> reportFiles) throws java.io.IOException- Throws:
java.io.IOException
-
createProject
public void createProject(java.lang.String projectName) throws java.io.IOException- Throws:
java.io.IOException
-
isProjectExists
public boolean isProjectExists(java.lang.String projectName) throws java.io.IOException- Throws:
java.io.IOException
-