code: public InputStream downloadArtifactsFile(Object projectIdOrPath, String ref, String jobName) throws GitLabApiException {
          Form formData = new GitLabApiForm().withParam("job", jobName, true);
          Response response = getWithAccepts(Response.Status.OK, formData.asMap(), MediaType.MEDIA_TYPE_WILDCARD,
                  "projects", getProjectIdOrPath(projectIdOrPath), "jobs", "artifacts", ref, "download");
          return (response.readEntity(InputStream.class));
      }
docs: Get an InputStream pointing to the artifacts file from the given reference name and job
  provided the job finished successfully. The file will be saved to the specified directory.
  If the file already exists in the directory it will be overwritten.
  
  <pre><code>GitLab Endpoint: GET /projects/:id/jobs/artifacts/:ref_name/download?job=name</code></pre>
  
  @param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
  @param ref the ref from a repository
  @param jobName the name of the job to download the artifacts for
  @return an InputStream to read the specified artifacts file from
  @throws GitLabApiException if any exception occurs