Skip to main content

OutputArtifact

OutputArtifact.basename

OutputArtifact.basename: str

The base name of this artifact. e.g. for an artifact at foo/bar, this is bar


OutputArtifact.extension

OutputArtifact.extension: str

The file extension of this artifact. e.g. for an artifact at foo/bar.sh, this is .sh. If no extension is present, "" is returned.


OutputArtifact.is_source

OutputArtifact.is_source: bool

Whether the artifact represents a source file


OutputArtifact.owner

OutputArtifact.owner: Label | None

The Label of the rule that originally created this artifact. May also be None in the case of source files, or if the artifact has not be used in an action, or if the action was not created by a rule.


OutputArtifact.short_path

OutputArtifact.short_path: str

The interesting part of the path, relative to somewhere in the output directory. For an artifact declared as foo/bar, this is foo/bar.