diff --git a/integration/gcs.go b/integration/gcs.go index eb6efc77b..0268d58f6 100644 --- a/integration/gcs.go +++ b/integration/gcs.go @@ -55,9 +55,10 @@ func UploadFileToBucket(gcsBucket string, filePath string, gcsPath string) (stri cmd := exec.Command("gsutil", "cp", filePath, dst) out, err := RunCommandWithoutTest(cmd) if err != nil { + log.Printf("Error uploading file %s to GCS at %s: %s", filePath, dst, err) + log.Println(string(out)) return "", fmt.Errorf("Failed to copy tarball to GCS bucket %s: %s", gcsBucket, err) } - log.Println(string(out)) return dst, nil } diff --git a/integration/images.go b/integration/images.go index 52a91cc79..ebe55071a 100644 --- a/integration/images.go +++ b/integration/images.go @@ -196,7 +196,7 @@ func (d *DockerFileBuilder) BuildImage(imageRepo, gcsBucket, dockerfilesPath, do } if b, err := strconv.ParseBool(os.Getenv("BENCHMARK")); err == nil && b { benchmarkEnv = "BENCHMARK_FILE=/kaniko/benchmarks/" + dockerfile - benchmarkFile := path.Join("benchmarks", dockerfile) + benchmarkFile := path.Join(benchmarkDir, dockerfile) dst := path.Join("benchmarks/run_"+time.Now().Format("2006-01-02-15:04:05"), dockerfile) defer UploadFileToBucket(gcsBucket, benchmarkFile, dst) }