@@ -94,66 +94,7 @@ 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-
11197# @ 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
15798# @ end
15899
159100# @ def run_stemcell_upload_tests():
@@ -225,10 +166,7 @@ ensure:
225166 env_name_file : environment/name
226167 terraform_source : bosh-cpi-src/ci/assets/terraform
227168# @ end
228- ---
229169
230- # @yaml/text-templated-strings
231- ---
232170anchors :
233171 ci_bot :
234172 email : &ci_bot_email bots@cloudfoundry.org
@@ -392,7 +330,17 @@ jobs:
392330
393331- name : build-light-google-(@= data.values.stemcell_details.os_name @)-(@= str(data.values.stemcell_details.major_version) @)
394332 plan :
395- - # @ get_google_light_inputs(data.values.stemcell_details.os_name, str(data.values.stemcell_details.major_version))
333+ - in_parallel :
334+ - get : stemcell
335+ params :
336+ include_files :
337+ - bosh-stemcell-*-google-kvm-(@= data.values.stemcell_details.os_name @)*.tgz
338+ resource : candidate-(@= data.values.stemcell_details.os_name @)-stemcell-(@= str(data.values.stemcell_details.major_version) @)
339+ trigger : true
340+ version : every
341+ - get : bosh-stemcells-ci
342+ - get : bosh-cpi-release
343+ resource : bosh-google-cpi-release
396344 - get : light-stemcell-builder-registry-image
397345 - get : gce-cpi-release-registry-image
398346 - get : bosh-integration-registry-image
@@ -414,8 +362,51 @@ jobs:
414362 GCP_SERVICE_ACCOUNT_KEY : ((gcp_json_key))
415363 PROJECT_NAME : ((gcp_project_id))
416364 EFI : # @ data.values.stemcell_details.use_efi
417-
418- - # @ deploy_skeletal_google_light_stemcell("light-google-environment-oss", "((gcp_json_key))")
365+ - do :
366+ - params :
367+ generate_random_name : true
368+ terraform_source : bosh-stemcells-ci/ci/tasks/light-google/terraform/
369+ put : terraform
370+ resource : light-google-environment-oss
371+ - file : bosh-stemcells-ci/ci/tasks/light-google/deploy-skeletal.yml
372+ image : bosh-integration-registry-image
373+ params :
374+ GCE_CREDENTIALS_JSON : ((gcp_json_key))
375+ SSH_PRIVATE_KEY : ((ssh.private_key))
376+ task : deploy-skeletal
377+ ensure :
378+ ensure :
379+ get_params :
380+ action : destroy
381+ params :
382+ action : destroy
383+ env_name_file : terraform/name
384+ terraform_source : bosh-stemcells-ci/ci/tasks/light-google/terraform/
385+ put : terraform
386+ resource : light-google-environment-oss
387+ file : bosh-stemcells-ci/ci/tasks/light-google/destroy-skeletal.yml
388+ image : bosh-integration-registry-image
389+ task : destroy-skeletal
390+ on_failure :
391+ image : bosh-integration-registry-image
392+ config :
393+ platform : linux
394+ run :
395+ args :
396+ - |
397+ * remove artifacts of failed jobs:
398+ ```bash
399+ gcloud auth revoke --all # start with clean slate
400+ gcloud auth activate-service-account concourse@((gcp_project_id)).iam.gserviceaccount.com --key-file <( ((gcp_json_key)) )
401+ gsutil rm gs://bosh-gce-raw-stemcells-new/STEMCELL_TO_BE_DELETED_raw.tar.gz
402+ gsutil rm gs://bosh-gce-raw-stemcells-new/STEMCELL_TO_BE_DELETED_raw.tar.gz.sha1
403+ gcloud auth revoke --all
404+ ```
405+ * re-fly pipeline after commenting-out `disable_manual_trigger: true`
406+ * trigger failed jobs
407+ * re-fly pipeline after uncommenting `disable_manual_trigger: true`
408+ path : echo
409+ task : cleanup-failed-run-instructions
419410 - params :
420411 files :
421412 - light-stemcell/*.tgz
0 commit comments