@@ -94,68 +94,6 @@ in_parallel:
9494 # @ end
9595# @ end
9696
97- # @ def get_google_light_inputs(stemcell_os, stemcell_version):
98- in_parallel :
99- - get : stemcell
100- params :
101- include_files :
102- - bosh-stemcell-*-google-kvm-(@= stemcell_os @)*.tgz
103- resource : candidate-(@= stemcell_os @)-stemcell-(@= str(stemcell_version) @)
104- trigger : true
105- version : every
106- - get : bosh-stemcells-ci
107- - get : bosh-cpi-release
108- resource : bosh-google-cpi-release
109- # @ end
110-
111- # @ def deploy_skeletal_google_light_stemcell(terraform_resource, credentials):
112- do :
113- - params :
114- generate_random_name : true
115- terraform_source : bosh-stemcells-ci/ci/tasks/light-google/terraform/
116- put : terraform
117- resource : (@= terraform_resource @)
118- - file : bosh-stemcells-ci/ci/tasks/light-google/deploy-skeletal.yml
119- image : bosh-integration-registry-image
120- params :
121- GCE_CREDENTIALS_JSON : (@= credentials @)
122- SSH_PRIVATE_KEY : ((ssh.private_key))
123- task : deploy-skeletal
124- ensure :
125- ensure :
126- get_params :
127- action : destroy
128- params :
129- action : destroy
130- env_name_file : terraform/name
131- terraform_source : bosh-stemcells-ci/ci/tasks/light-google/terraform/
132- put : terraform
133- resource : (@= terraform_resource @)
134- file : bosh-stemcells-ci/ci/tasks/light-google/destroy-skeletal.yml
135- image : bosh-integration-registry-image
136- task : destroy-skeletal
137- on_failure :
138- image : bosh-integration-registry-image
139- config :
140- platform : linux
141- run :
142- args :
143- - |
144- * remove artifacts of failed jobs:
145- ```bash
146- gcloud auth revoke --all # start with clean slate
147- gcloud auth activate-service-account concourse@((gcp_project_id)).iam.gserviceaccount.com --key-file <( ((gcp_json_key)) )
148- gsutil rm gs://bosh-gce-raw-stemcells-new/STEMCELL_TO_BE_DELETED_raw.tar.gz
149- gsutil rm gs://bosh-gce-raw-stemcells-new/STEMCELL_TO_BE_DELETED_raw.tar.gz.sha1
150- gcloud auth revoke --all
151- ```
152- * re-fly pipeline after commenting-out `disable_manual_trigger: true`
153- * trigger failed jobs
154- * re-fly pipeline after uncommenting `disable_manual_trigger: true`
155- path : echo
156- task : cleanup-failed-run-instructions
157- # @ end
158-
15997# @ def run_stemcell_upload_tests():
16098do :
16199- in_parallel :
@@ -225,10 +163,7 @@ ensure:
225163 env_name_file : environment/name
226164 terraform_source : bosh-cpi-src/ci/assets/terraform
227165# @ end
228- ---
229166
230- # @yaml/text-templated-strings
231- ---
232167anchors :
233168 ci_bot :
234169 email : &ci_bot_email bots@cloudfoundry.org
@@ -392,7 +327,17 @@ jobs:
392327
393328- name : build-light-google-(@= data.values.stemcell_details.os_name @)-(@= str(data.values.stemcell_details.major_version) @)
394329 plan :
395- - # @ get_google_light_inputs(data.values.stemcell_details.os_name, str(data.values.stemcell_details.major_version))
330+ - in_parallel :
331+ - get : stemcell
332+ params :
333+ include_files :
334+ - bosh-stemcell-*-google-kvm-(@= data.values.stemcell_details.os_name @)*.tgz
335+ resource : candidate-(@= data.values.stemcell_details.os_name @)-stemcell-(@= str(data.values.stemcell_details.major_version) @)
336+ trigger : true
337+ version : every
338+ - get : bosh-stemcells-ci
339+ - get : bosh-cpi-release
340+ resource : bosh-google-cpi-release
396341 - get : light-stemcell-builder-registry-image
397342 - get : gce-cpi-release-registry-image
398343 - get : bosh-integration-registry-image
@@ -414,8 +359,51 @@ jobs:
414359 GCP_SERVICE_ACCOUNT_KEY : ((gcp_json_key))
415360 PROJECT_NAME : ((gcp_project_id))
416361 EFI : # @ data.values.stemcell_details.use_efi
417-
418- - # @ deploy_skeletal_google_light_stemcell("light-google-environment-oss", "((gcp_json_key))")
362+ - do :
363+ - params :
364+ generate_random_name : true
365+ terraform_source : bosh-stemcells-ci/ci/tasks/light-google/terraform/
366+ put : terraform
367+ resource : light-google-environment-oss
368+ - file : bosh-stemcells-ci/ci/tasks/light-google/deploy-skeletal.yml
369+ image : bosh-integration-registry-image
370+ params :
371+ GCE_CREDENTIALS_JSON : ((gcp_json_key))
372+ SSH_PRIVATE_KEY : ((ssh.private_key))
373+ task : deploy-skeletal
374+ ensure :
375+ ensure :
376+ get_params :
377+ action : destroy
378+ params :
379+ action : destroy
380+ env_name_file : terraform/name
381+ terraform_source : bosh-stemcells-ci/ci/tasks/light-google/terraform/
382+ put : terraform
383+ resource : light-google-environment-oss
384+ file : bosh-stemcells-ci/ci/tasks/light-google/destroy-skeletal.yml
385+ image : bosh-integration-registry-image
386+ task : destroy-skeletal
387+ on_failure :
388+ image : bosh-integration-registry-image
389+ config :
390+ platform : linux
391+ run :
392+ args :
393+ - |
394+ * remove artifacts of failed jobs:
395+ ```bash
396+ gcloud auth revoke --all # start with clean slate
397+ gcloud auth activate-service-account concourse@((gcp_project_id)).iam.gserviceaccount.com --key-file <( ((gcp_json_key)) )
398+ gsutil rm gs://bosh-gce-raw-stemcells-new/STEMCELL_TO_BE_DELETED_raw.tar.gz
399+ gsutil rm gs://bosh-gce-raw-stemcells-new/STEMCELL_TO_BE_DELETED_raw.tar.gz.sha1
400+ gcloud auth revoke --all
401+ ```
402+ * re-fly pipeline after commenting-out `disable_manual_trigger: true`
403+ * trigger failed jobs
404+ * re-fly pipeline after uncommenting `disable_manual_trigger: true`
405+ path : echo
406+ task : cleanup-failed-run-instructions
419407 - params :
420408 files :
421409 - light-stemcell/*.tgz
0 commit comments