Skip to content

Commit 807d22f

Browse files
authored
Merge pull request kubernetes#130473 from dims/ensure-we-switch-to-k8s-root-directory-for-dockerized-builds-during-e2e-node-ci-job
Ensure we switch to k8s root directory for dockerized builds during e2e-node ci job
2 parents 9fe95e7 + fb3b163 commit 807d22f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/e2e_node/builder/build.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ func BuildTargets(cgo bool) error {
7777
klog.Infof("Building dockerized k8s binaries targets %s for architecture %s", targets, GetTargetBuildArch())
7878
// Multi-architecture build is only supported in dockerized build
7979
cmd = exec.Command(filepath.Join(k8sRoot, "build/run.sh"), "make", fmt.Sprintf("WHAT=%s", what), fmt.Sprintf("KUBE_BUILD_PLATFORMS=%s", GetTargetBuildArch()))
80+
// Ensure we run this command in k8s root directory for dockerized build
81+
cmd.Dir = k8sRoot
8082
}
8183
cmd.Stdout = os.Stdout
8284
cmd.Stderr = os.Stderr

0 commit comments

Comments
 (0)