blob: dce25a6c10d701bb5611f47c8a1b34017d181ba7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
namespace marlin.core.models.meta;
public class Artifact
{
public Artifact(string id)
{
this.Id = id;
}
public string Id { get; }
public string Path { get; set; }
public string Type { get; set; }
public ArtifactHandle Handle { get; set; } = ArtifactHandle.Defer;
public bool RequiresOrchestratorUpload()
{
return this.Type?.StartsWith("test/") == true || this.Type?.StartsWith("logs/") == true;
}
}
public enum ArtifactHandle
{
Immediate,
Step,
Defer
}
|