@@ -15,7 +15,7 @@ services:
1515 - agent-ssh-dir:/ssh-dir # Mounts the agent-ssh-dir volume to the /ssh-dir path inside the container
1616 # The healthcheck command checks if the conductor_ok file exists in the /ssh-dir directory.
1717 healthcheck :
18- test : ["CMD-SHELL", "[ -f /ssh-dir/conductor_ok ] || exit 1"]
18+ test : [ "CMD-SHELL", "[ -f /ssh-dir/conductor_ok ] || exit 1" ]
1919 # Checks if the conductor_ok file exists in the /ssh-dir path
2020 interval : 5s
2121 timeout : 10s
@@ -42,7 +42,7 @@ services:
4242 condition : service_completed_successfully # Depends on the successful completion of the sidekick_service
4343 # The healthcheck command checks if the find-name.sh script can be executed successfully.
4444 healthcheck :
45- test : ["CMD-SHELL", "/usr/local/bin/find-name.sh || exit 0"]
45+ test : [ "CMD-SHELL", "/usr/local/bin/find-name.sh || exit 0" ]
4646 interval : 5s
4747 timeout : 10s
4848 retries : 50
@@ -60,6 +60,7 @@ services:
6060 - node
6161 - android
6262 - golang
63+ - cpp
6364 - default
6465 # The CASC_RELOAD_TOKEN environment variable is used by the Jenkins controller to restart the Configuration as Code (JCasc) plugin configuration.
6566 environment :
@@ -77,7 +78,7 @@ services:
7778 sidekick_service :
7879 condition : service_completed_successfully # Depends on the successful completion of the sidekick_service
7980 healthcheck :
80- test : ["CMD-SHELL", "[ -f /ssh-dir/conductor_ok ] || exit 1"]
81+ test : [ "CMD-SHELL", "[ -f /ssh-dir/conductor_ok ] || exit 1" ]
8182 # Checks if the conductor_ok file exists in the /ssh-dir path
8283 interval : 5s
8384 timeout : 10s
@@ -98,7 +99,7 @@ services:
9899 sidekick_service :
99100 condition : service_completed_successfully # Depends on the successful completion of the sidekick_service
100101 healthcheck :
101- test : ["CMD-SHELL", "[ -f /ssh-dir/conductor_ok ] || exit 1"]
102+ test : [ "CMD-SHELL", "[ -f /ssh-dir/conductor_ok ] || exit 1" ]
102103 # Checks if the conductor_ok file exists in the /ssh-dir path
103104 interval : 5s
104105 timeout : 10s
@@ -118,7 +119,7 @@ services:
118119 jenkins_controller :
119120 condition : service_started
120121 healthcheck :
121- test : ["CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1"]
122+ test : [ "CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1" ]
122123 # Checks if the authorized_keys file exists in the /home/jenkins/.ssh path
123124 interval : 5s
124125 timeout : 10s
@@ -148,7 +149,7 @@ services:
148149 jenkins_controller :
149150 condition : service_started
150151 healthcheck :
151- test : ["CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1"]
152+ test : [ "CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1" ]
152153 # Checks if the authorized_keys file exists in the /home/jenkins/.ssh path
153154 interval : 5s
154155 timeout : 10s
@@ -166,7 +167,7 @@ services:
166167 jenkins_controller :
167168 condition : service_started
168169 healthcheck :
169- test : ["CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1"]
170+ test : [ "CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1" ]
170171 # Checks if the authorized_keys file exists in the /home/jenkins/.ssh path
171172 interval : 5s
172173 timeout : 10s
@@ -188,7 +189,7 @@ services:
188189 ports :
189190 - " 3000:3000"
190191 healthcheck :
191- test : ["CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1"]
192+ test : [ "CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1" ]
192193 # Checks if the authorized_keys file exists in the /home/jenkins/.ssh path
193194 interval : 5s
194195 timeout : 10s
@@ -210,7 +211,7 @@ services:
210211 ports :
211212 - " 3000:3000"
212213 healthcheck :
213- test : ["CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1"]
214+ test : [ "CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1" ]
214215 # Checks if the authorized_keys file exists in the /home/jenkins/.ssh path
215216 interval : 5s
216217 timeout : 10s
@@ -231,7 +232,7 @@ services:
231232 sidekick_service :
232233 condition : service_completed_successfully # Depends on the successful completion of the sidekick_service
233234 healthcheck :
234- test : ["CMD-SHELL", "[ -f /ssh-dir/conductor_ok ] || exit 1"]
235+ test : [ "CMD-SHELL", "[ -f /ssh-dir/conductor_ok ] || exit 1" ]
235236 # Checks if the conductor_ok file exists in the /ssh-dir path
236237 interval : 5s
237238 timeout : 10s
@@ -252,7 +253,7 @@ services:
252253 - " 3000:3000"
253254 - " 5000:5000"
254255 healthcheck :
255- test : ["CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1"]
256+ test : [ "CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1" ]
256257 # Checks if the authorized_keys file exists in the /home/jenkins/.ssh path
257258 interval : 5s
258259 timeout : 10s
@@ -274,30 +275,36 @@ services:
274275 ports :
275276 - " 3000:3000"
276277 healthcheck :
277- test : ["CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1"]
278+ test : [ "CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1" ]
278279 # Checks if the authorized_keys file exists in the /home/jenkins/.ssh path
279280 interval : 5s
280281 timeout : 10s
281282 retries : 5
282283 volumes :
283284 - agent-ssh-dir:/home/jenkins/.ssh:ro # Mounts the agent-ssh-dir volume to the /home/jenkins/.ssh path inside the container as read-only
284285 cpp :
285- image : ${IMAGE_PREFIX}/${GHCR_USERNAME}/quickstart-tutorials/jenkinsci-tutorials:cpp_agent_${BRANCH_SUFFIX}
286+ image : ${IMAGE_PREFIX}/${GHCR_USERNAME}/quickstart-tutorials/jenkinsci-tutorials:cpp_{BRANCH_SUFFIX}
287+ environment :
288+ - GITPOD_WORKSPACE_URL=${GITPOD_WORKSPACE_URL}
286289 container_name : desktop-jenkins_agent-1-cpp
287290 profiles :
288291 - cpp
289292 depends_on :
290293 sidekick_service :
291- condition : service_completed_successfully
294+ condition : service_completed_successfully # Depends on the successful completion of the sidekick_service
292295 jenkins_controller :
293296 condition : service_started
297+ ports :
298+ - " 3000:3000"
294299 healthcheck :
295- test : ["CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1"]
300+ test : [ "CMD-SHELL", "[ -f /home/jenkins/.ssh/authorized_keys ] || exit 1" ]
301+ # Checks if the authorized_keys file exists in the /home/jenkins/.ssh path
296302 interval : 5s
297303 timeout : 10s
298304 retries : 5
299305 volumes :
300- - agent-ssh-dir:/home/jenkins/.ssh:ro
306+ - agent-ssh-dir:/home/jenkins/.ssh:ro # Mounts the agent-ssh-dir volume to the /home/jenkins/.ssh path inside the container as read-only
307+
301308volumes :
302309 jenkins_home : null
303310 empty_jenkins_home : null
0 commit comments