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.MediaType JSON  
  • Constructor Summary

    Constructors 
    Constructor Description
    AllureServiceClient​(java.lang.String serverUrl)  
  • Method Summary

    Modifier and Type Method Description
    void createProject​(java.lang.String projectName)  
    boolean isProjectExists​(java.lang.String projectName)  
    void sendResults​(java.lang.String projectName, java.util.ArrayList<java.io.File> reportFiles)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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