model.js; return null value for diversity when not available

Status Job ID Name Coverage
  Test Tools
passed #818232
test_tools

00:00:17

 
  Test Quality
failed #818233
allowed to fail
code_quality

00:00:03

 
  Test Unit
passed #818234
web
test_server_unit

00:00:22

 
  Deploy Review
passed #818235
deploy_review_server

00:00:47

manual #818236
allowed to fail manual
stop_deploy_review_server
 
  Test Functional
failed #818237
docker x86_64
ff32-server-functional

00:07:17

failed #818238
docker x86_64
ff45-server-functional

00:07:31

 
Name Stage Failure
failed
ff45-server-functional Test Functional
Deleted: sha256:5d4c435681cdd1968e3b0cbf92f225c620bbc91028bd9b617b60619d58381878
Deleted: sha256:7ddc9179b984ea7a7fe971fae9c4aa59f74676687bf5ac76bfebc7956d384143
Deleted: sha256:5c04313090f38096bc1194942ff29609ccfdc1f843875df3e5d1ec79cfbd50aa
Deleted: sha256:85ee1f103fe0302332ebf1b4880a2782962c2df3af386f2e221c79b27a88e268
Uploading artifacts...
Runtime platform arch=amd64 os=linux pid=19437 revision=1b659122 version=12.8.0
server/web2py/applications/vidjil/tests/test/TEST-*.xml: found 5 matching files

Uploading artifacts to coordinator... ok
id=818238 responseStatus=201 Created token=iHJJV5T8
ERROR: Job failed: exit status 1
failed
ff32-server-functional Test Functional
Deleted: sha256:a1428ee78996948484e05f2577d32290b7cdafbd3e5afe73083ee12b1eb6b48a
Deleted: sha256:fd582ecd931cc5d15fb381e46d5fd3d0b209a9b7f57751c17b74a023fc98b2ca
Deleted: sha256:c222a2c714bf963773d5183d9222fb78bd843e5c868267c88f08ceebf3b7e238
Deleted: sha256:22dc202f5634da6f8d1c756f38f84b70b6b778cf32954621a72199d0a69b70f6
Uploading artifacts...
Runtime platform arch=amd64 os=linux pid=19816 revision=58272c27 version=12.7.0
server/web2py/applications/vidjil/tests/test/TEST-*.xml: found 5 matching files

Uploading artifacts to coordinator... ok
id=818237 responseStatus=201 Created token=f24CEDUA
ERROR: Job failed: exit status 1
failed
code_quality Test Quality
$ function propagate_env_vars() { # collapsed multi-line command
$ docker pull --quiet "$CODE_QUALITY_IMAGE"
unknown flag: --quiet
See 'docker pull --help'.
Uploading artifacts...
Runtime platform arch=386 os=linux pid=29854 revision=58272c27 version=12.7.0
WARNING: gl-code-quality-report.json: no matching files
ERROR: No files to upload
ERROR: Job failed: exit status 1