Skip to content

Commit

Permalink
Fix the issue failed to checkout repo in CI (#4891)
Browse files Browse the repository at this point in the history
  • Loading branch information
KanShiori authored Feb 20, 2023
1 parent 2b54be6 commit 8791566
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ci/pull_e2e_kind.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion ci/pull_e2e_release.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 8791566

Please sign in to comment.