Skip to content

Commit 25b9669

Browse files
authored
feat: add parameters for checkout path and method in Kubernetes E2E tests (#460)
* feat: add parameters for checkout path and method in Kubernetes E2E tests * add checkout-path and checkout-method to remaining orbs
1 parent df1cb40 commit 25b9669

File tree

4 files changed

+52
-4
lines changed

4 files changed

+52
-4
lines changed

orb/jobs/docker_build_and_push.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,21 @@ parameters:
3434
type: boolean
3535
description: "Enables docker_layer_caching on remote docker. Requires a paid plan."
3636
default: false
37+
checkout-path:
38+
description: |
39+
Where to checkout the repository.
40+
type: string
41+
default: "."
42+
checkout-method:
43+
description: |
44+
Valid options include blobless and full.
45+
type: string
46+
default: "blobless"
3747
executor: <<parameters.executor>>
3848
steps:
39-
- checkout
49+
- checkout:
50+
path: << parameters.checkout-path >>
51+
method: << parameters.checkout-method >>
4052
- setup_remote_docker:
4153
docker_layer_caching: <<parameters.enable_docker_layer_caching>>
4254
- set_env

orb/jobs/github_release.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,19 @@ parameters:
1010
description: "The name of custom executor to use. Only recommended for development."
1111
type: executor
1212
default: ci-images
13+
checkout-path:
14+
description: |
15+
Where to checkout the repository.
16+
type: string
17+
default: "."
18+
checkout-method:
19+
description: |
20+
Valid options include blobless and full.
21+
type: string
22+
default: "blobless"
1323
executor: <<parameters.executor>>
1424
steps:
15-
- checkout
25+
- checkout:
26+
path: << parameters.checkout-path >>
27+
method: << parameters.checkout-method >>
1628
- github_release

orb/jobs/insights.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,21 @@ parameters:
55
description: "The name of custom executor to use. Only recommended for development."
66
type: executor
77
default: ci-images
8+
checkout-path:
9+
description: |
10+
Where to checkout the repository.
11+
type: string
12+
default: "."
13+
checkout-method:
14+
description: |
15+
Valid options include blobless and full.
16+
type: string
17+
default: "blobless"
818
executor: <<parameters.executor>>
919
steps:
10-
- checkout
20+
- checkout:
21+
path: << parameters.checkout-path >>
22+
method: << parameters.checkout-method >>
1123
- setup_remote_docker
1224
- run:
1325
name: Run Insights Checks

orb/jobs/kubernetes_e2e_tests.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,26 @@ parameters:
100100
Where to mount the workspace if attach-workspace is true.
101101
type: string
102102
default: "/tmp/workspace"
103+
checkout-path:
104+
description: |
105+
Where to checkout the repository.
106+
type: string
107+
default: "."
108+
checkout-method:
109+
description: |
110+
Valid options include blobless and full.
111+
type: string
112+
default: "blobless"
103113
executor: <<parameters.executor>>
104114
steps:
105115
- when:
106116
condition: <<parameters.attach-workspace>>
107117
steps:
108118
- attach_workspace:
109119
at: <<parameters.workspace-location>>
110-
- checkout
120+
- checkout:
121+
path: << parameters.checkout-path >>
122+
method: << parameters.checkout-method >>
111123
- setup_remote_docker:
112124
docker_layer_caching: << parameters.enable_docker_layer_caching >>
113125
- set_env

0 commit comments

Comments
 (0)