Unify analysis product path identity
This commit is contained in:
@@ -3,6 +3,7 @@ package artifactpolicy
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"path/filepath"
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
@@ -340,6 +341,9 @@ func DeriveDefaultPublishedDestination(source Source, configured map[string]stri
|
||||
if strings.TrimSpace(outputPath) == "" {
|
||||
return "", fmt.Errorf("pipeline.scriptorium.artifacts.%s.output_path is empty", source.ConfiguredKey)
|
||||
}
|
||||
if filepath.IsAbs(outputPath) {
|
||||
outputPath = filepath.Join("artifacts", filepath.Base(outputPath))
|
||||
}
|
||||
return pathsafe.NormalizeRelativeDestination(outputPath)
|
||||
default:
|
||||
return "", fmt.Errorf("publish destination cannot be derived from source %q", source.ID)
|
||||
|
||||
Reference in New Issue
Block a user