diff --git a/ci/pull_e2e_kind.groovy b/ci/pull_e2e_kind.groovy index 63be1bf1bb..45a0b86832 100644 --- a/ci/pull_e2e_kind.groovy +++ b/ci/pull_e2e_kind.groovy @@ -292,6 +292,7 @@ try { # we run as root in our pods, this is required # otherwise jenkins agent will fail because of the lack of permission chown -R 1000:1000 . + git config --global --add safe.directory '*' """ // clean stale files because we may reuse previous created nodes @@ -360,7 +361,6 @@ try { # we run as root in our pods, this is required # otherwise jenkins agent will fail because of the lack of permission chown -R 1000:1000 . - git config --global --add safe.directory '*' """ } stash excludes: "vendor/**,deploy/**,tests/**", name: "tidb-operator" diff --git a/ci/pull_e2e_release.groovy b/ci/pull_e2e_release.groovy index 9b2d45a7b6..a5d7586454 100644 --- a/ci/pull_e2e_release.groovy +++ b/ci/pull_e2e_release.groovy @@ -251,6 +251,7 @@ try { # we run as root in our pods, this is required # otherwise jenkins agent will fail because of the lack of permission chown -R 1000:1000 . + git config --global --add safe.directory '*' """ // clean stale files because we may reuse previous created nodes @@ -319,7 +320,6 @@ try { # we run as root in our pods, this is required # otherwise jenkins agent will fail because of the lack of permission chown -R 1000:1000 . - git config --global --add safe.directory '*' """ } stash excludes: "vendor/**,deploy/**,tests/**", name: "tidb-operator"