Adding default OutputFile as DRONE_OUTPUT.

This commit is contained in:
Devansh Mathur
2025-02-24 13:49:13 +05:30
parent 30e1ea9fd8
commit 6420f80694
+3 -1
View File
@@ -482,7 +482,9 @@ func (p Plugin) Exec() error {
fmt.Fprintf(os.Stderr, "failed to write plugin artifact file at path: %s with error: %s\n", p.Artifact.ArtifactFile, err)
}
}
if p.Output.OutputFile == "" {
p.Output.OutputFile = os.Getenv("DRONE_OUTPUT")
}
if p.Output.OutputFile != "" {
var tarPath string
if p.Build.TarPath != "" {