Skip to content

Commit

Permalink
Don't delete .git when cleaning the workspace. (#475)
Browse files Browse the repository at this point in the history
This means a full clone isn't necessary, reducing the likelihood that
Github will rate-limit our repository.
  • Loading branch information
rmmh committed Aug 31, 2016
1 parent 2e354e5 commit ab83263
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
Expand Up @@ -84,6 +84,7 @@
PATH=$PATH:$GOROOT/bin:$WORKSPACE/go/bin
- workspace-cleanup:
dirmatch: true
exclude: ['.git']
external-deletion-command: 'sudo rm -rf %s'
- timeout:
timeout: 90
Expand Down
Expand Up @@ -48,6 +48,7 @@
PATH=$PATH:$GOROOT/bin:$WORKSPACE/go/bin
- workspace-cleanup:
dirmatch: true
exclude: ['.git']
external-deletion-command: 'sudo rm -rf %s'
- timeout:
timeout: 90
Expand Down
Expand Up @@ -255,6 +255,7 @@
PATH=$PATH:$GOROOT/bin:$WORKSPACE/go/bin
- workspace-cleanup:
dirmatch: true
exclude: ['.git']
external-deletion-command: 'sudo rm -rf %s'
- timeout:
timeout: 90
Expand Down
2 changes: 2 additions & 0 deletions jenkins/job-configs/kubernetes-jenkins/kubernetes-build.yaml
Expand Up @@ -24,6 +24,7 @@
- gcs-uploader
- workspace-cleanup:
dirmatch: true
exclude: ['.git']
external-deletion-command: 'sudo rm -rf %s'
scm:
- git:
Expand All @@ -45,6 +46,7 @@
- timestamps
- workspace-cleanup:
dirmatch: true
exclude: ['.git']
external-deletion-command: 'sudo rm -rf %s'

- project:
Expand Down
Expand Up @@ -37,6 +37,7 @@
- timestamps
- workspace-cleanup:
dirmatch: true
exclude: ['.git']
external-deletion-command: 'sudo rm -rf %s'
- e2e-credentials-binding

Expand Down

0 comments on commit ab83263

Please sign in to comment.