File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ groups:
4040 - test-bosh-gcp
4141 - test-smoke
4242 - test-main-warden-cpi
43+ - test-main-docker-cpi
4344 - promote
4445- name : cpis
4546 jobs :
@@ -144,6 +145,21 @@ jobs:
144145 stemcell : warden-ubuntu-noble-stemcell
145146 privileged : true
146147
148+ - name : test-main-docker-cpi
149+ serial : true
150+ build_log_retention :
151+ builds : 250
152+ plan :
153+ - get : bosh-deployment
154+ trigger : true
155+ - get : warden-ubuntu-noble-stemcell
156+ - task : test-main-docker-cpi
157+ timeout : 2h
158+ file : bosh-deployment/ci/tasks/test-main-docker-cpi.yml
159+ input_mapping :
160+ stemcell : warden-ubuntu-noble-stemcell
161+ privileged : true
162+
147163- name : promote
148164 serial : true
149165 build_log_retention :
@@ -155,6 +171,7 @@ jobs:
155171 - test-smoke
156172 - test-bosh-gcp
157173 - test-main-warden-cpi
174+ - test-main-docker-cpi
158175 - put : bosh-deployment-commit-status
159176 params :
160177 state : success
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -eu
4+
5+ script_dir=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
6+ bosh_deployment=" ${PWD} /bosh-deployment"
7+ rm -rf " /usr/local/bosh-deployment"
8+ cp -r " ${PWD} /bosh-deployment" " /usr/local/bosh-deployment"
9+
10+ export USE_LOCAL_RELEASES=false
11+ . start-bosh
12+ . /tmp/local-bosh/director/env
13+
14+ URL=$( cat stemcell/url)
15+ SHA1=$( cat stemcell/sha1)
16+
17+ bosh upload-stemcell --sha1 " $SHA1 " " $URL "
18+
19+ bosh -n update-runtime-config " ${bosh_deployment} /runtime-configs/dns.yml"
20+
21+ echo " -----> ` date` : Deploy"
22+ bosh -n -d zookeeper deploy " ${script_dir} /../assets/zookeeper.yml"
23+
24+ echo " -----> ` date` : Exercise deployment"
25+ bosh -n -d zookeeper run-errand smoke-tests
26+
27+ echo " -----> ` date` : Exercise deployment"
28+ bosh -n -d zookeeper recreate
29+
30+ echo " -----> ` date` : Clean up disks, etc."
31+ bosh -n -d zookeeper clean-up --all
Original file line number Diff line number Diff line change 1+ ---
2+ platform : linux
3+
4+ image_resource :
5+ type : registry-image
6+ source :
7+ repository : ghcr.io/cloudfoundry/bosh/docker-cpi
8+
9+ inputs :
10+ - name : bosh-deployment
11+ - name : stemcell
12+
13+ run :
14+ path : bosh-deployment/ci/tasks/test-main-docker-cpi.sh
You can’t perform that action at this time.
0 commit comments