Skip to content

Commit

Permalink
TRy to fix BDN_Artifacts.zip creation
Browse files Browse the repository at this point in the history
  • Loading branch information
MihaZupan committed Jun 20, 2024
1 parent 653270b commit d2b9855
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Runner/JobBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ protected async Task ZipAndUploadArtifactAsync(string zipFileName, string folder
{
zipFileName = $"{zipFileName}.zip";

if (!string.IsNullOrEmpty(workDir))
{
zipFileName = Path.GetFullPath(Path.Combine(workDir, zipFileName));
}

if (OperatingSystem.IsWindows())
{
await LogAsync($"[{zipFileName}] Compressing {folderPath}");
Expand All @@ -165,6 +170,8 @@ protected async Task ZipAndUploadArtifactAsync(string zipFileName, string folder
}

await UploadArtifactAsync(zipFileName);

File.Delete(zipFileName);
}

public async Task LogAsync(string message)
Expand Down

0 comments on commit d2b9855

Please sign in to comment.