Skip to content

Commit befd599

Browse files
committed
feat: [PIPE-29213]: Add saving dir fix for BI local runner
1 parent 6344ef6 commit befd599

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ti/savings/cache/maven/parser.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
)
1717

1818
const (
19-
mavenReportPathRegex = "./**/target/maven-incremental/*.xml"
19+
mavenReportPathRegex = "**/target/maven-incremental/*.xml"
2020
tmpFilePath = "/tmp/maven-cache-marker"
2121
markerFilePerm = 0600
2222
markerDirPerm = 0755
@@ -28,7 +28,8 @@ func ParseSavings(workspace string, log *logrus.Logger) (types.IntelligenceExecu
2828

2929
fmt.Println("Parsing Maven cache savings...")
3030
// Find all XML files in any maven-incremental directory recursively using mavenReportPathRegex
31-
files, err := zglob.Glob(mavenReportPathRegex)
31+
path := fmt.Sprintf("%s/%s", workspace, mavenReportPathRegex)
32+
files, err := zglob.Glob(path)
3233
if err != nil {
3334
return cacheState, nil, fmt.Errorf("failed to find cache reports: %w", err)
3435
}

0 commit comments

Comments
 (0)