Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cleanup ¶ added in v0.80.0
func Cleanup(directory string)
Cleanup removes previous downloaded artifacts
func GetDirName ¶ added in v0.87.0
func GetDirName(suiteName string, cfg config.ArtifactDownload) (string, error)
GetDirName returns a target folder that's based on a combination of suiteName and the configured artifact download folder. The suiteName is sanitized by undergoing character replacements that are safe to be used as a directory name. If the determined target directory already exists, a running number is added as a suffix.
func ShouldDownloadArtifact ¶
func ShouldDownloadArtifact(jobID string, passed, timedOut, async bool, cfg config.ArtifactDownload) bool
ShouldDownloadArtifact returns true if it should download artifacts, otherwise false
Types ¶
type ArtifactDownloader ¶
type ArtifactDownloader interface {
DownloadArtifact(jobID, suiteName string)
}
ArtifactDownloader defines download functions
Click to show internal directories.
Click to hide internal directories.