@@ -332,7 +332,9 @@ public InputStream downloadArtifactsFile(Object projectIdOrPath, Integer jobId,
332
332
*/
333
333
public File downloadSingleArtifactsFile (Object projectIdOrPath , Integer jobId , Path artifactPath , File directory ) throws GitLabApiException {
334
334
335
- Response response = get (Response .Status .OK , getDefaultPerPageParam (), "projects" , getProjectIdOrPath (projectIdOrPath ), "jobs" , jobId , "artifacts" , artifactPath );
335
+ String path = artifactPath .toString ().replace ("\\ " , "/" );
336
+ Response response = get (Response .Status .OK , getDefaultPerPageParam (),
337
+ "projects" , getProjectIdOrPath (projectIdOrPath ), "jobs" , jobId , "artifacts" , path );
336
338
try {
337
339
338
340
if (directory == null )
@@ -364,7 +366,9 @@ public File downloadSingleArtifactsFile(Object projectIdOrPath, Integer jobId, P
364
366
* @throws GitLabApiException if any exception occurs
365
367
*/
366
368
public InputStream downloadSingleArtifactsFile (Object projectIdOrPath , Integer jobId , Path artifactPath ) throws GitLabApiException {
367
- Response response = get (Response .Status .OK , getDefaultPerPageParam (), "projects" , getProjectIdOrPath (projectIdOrPath ), "jobs" , jobId , "artifacts" , artifactPath );
369
+ String path = artifactPath .toString ().replace ("\\ " , "/" );
370
+ Response response = get (Response .Status .OK , getDefaultPerPageParam (),
371
+ "projects" , getProjectIdOrPath (projectIdOrPath ), "jobs" , jobId , "artifacts" , path );
368
372
return (response .readEntity (InputStream .class ));
369
373
}
370
374
@@ -380,7 +384,8 @@ public InputStream downloadSingleArtifactsFile(Object projectIdOrPath, Integer j
380
384
* @throws GitLabApiException if any exception occurs during execution
381
385
*/
382
386
public String getTrace (Object projectIdOrPath , int jobId ) throws GitLabApiException {
383
- Response response = get (Response .Status .OK , getDefaultPerPageParam (), "projects" , getProjectIdOrPath (projectIdOrPath ), "jobs" , jobId , "trace" );
387
+ Response response = get (Response .Status .OK , getDefaultPerPageParam (),
388
+ "projects" , getProjectIdOrPath (projectIdOrPath ), "jobs" , jobId , "trace" );
384
389
return (response .readEntity (String .class ));
385
390
}
386
391
0 commit comments