CodeCoverage: Add job run by nightly

The job is going to focus on build and test the code coverage stuff, and
generate the coverage report eventually.

The default setting for FILTER_GROUP of this job is TBD.

Signed-off-by: Karl Zhang <karl.zhang@arm.com>
Change-Id: Ide693c73e03c784440cce37d4bc300b7d65781d4
diff --git a/tf-m-nightly-code-coverage.yaml b/tf-m-nightly-code-coverage.yaml
new file mode 100644
index 0000000..7169a91
--- /dev/null
+++ b/tf-m-nightly-code-coverage.yaml
@@ -0,0 +1,102 @@
+#-------------------------------------------------------------------------------
+# Copyright (c) 2020, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+#-------------------------------------------------------------------------------
+
+- job:
+    name: tf-m-nightly-code-coverage
+    description: 'Build that triggers nightly to generate code  coverage data.'
+    project-type: pipeline
+    disabled: false
+    sandbox: true
+    concurrent: true
+    properties:
+      - build-discarder:
+          days-to-keep: 15
+          num-to-keep: 45
+      - authorization:
+          karl-zh:
+            - job-read
+            - job-extended-read
+            - job-build
+            - job-cancel
+          suihkulokki:
+            - job-read
+            - job-extended-read
+            - job-build
+            - job-cancel
+          minosgalanakis:
+            - job-read
+            - job-extended-read
+            - job-build
+            - job-cancel
+          bhcopeland:
+            - job-read
+            - job-extended-read
+            - job-build
+            - job-cancel
+    triggers:
+      - timed: 'H 21 * * *'
+    parameters:
+      - string:
+          name: 'FILTER_GROUP'
+          default: 'nightly_ff nightly_otp'
+          description: |
+            Filter to a group of configurations as recognised by configs.py
+      - string:
+          name: 'CODE_REPO'
+          default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
+      - string:
+          name: 'CI_SCRIPTS_REPO'
+          default: 'https://review.trustedfirmware.org/ci/tf-m-ci-scripts'
+      - string:
+          name: 'GERRIT_REFSPEC'
+          default: 'refs/heads/master'
+          description: |
+            For use when triggering with specified tag or master 'refs/heads/master' or 'refs/tags/TF-Mv1.0'.
+      - string:
+          name: 'GERRIT_BRANCH'
+          default: 'master'
+          description: |
+            For use when triggering with unmerged Gerrit changes.
+      - string:
+          name: 'GERRIT_HOST'
+          description: |
+            For use when triggering with unmerged Gerrit changes.
+      - string:
+          name: 'GERRIT_CHANGE_NUMBER'
+          description: |
+            For use when triggering with unmerged Gerrit changes.
+      - string:
+          name: 'GERRIT_PATCHSET_REVISION'
+          description: |
+            For use when triggering with unmerged Gerrit changes.
+      - string:
+          name: 'MBEDCRYPTO_VERSION'
+          default: 'mbedcrypto-3.0.1'
+      - string:
+          name: 'MBEDCRYPTO_URL'
+          default: 'https://git.trustedfirmware.org/mirror/mbed-crypto.git'
+      - string:
+          name: 'CMSIS_VERSION'
+          default: '5.5.0'
+      - string:
+          name: 'LAVA_URL'
+          default: 'https://tf.validation.linaro.org'
+      - string:
+          name: 'CI_SCRIPTS_BRANCH'
+          default: 'master'
+      - string:
+          name: 'CODE_COVERAGE_EN'
+          default: 'TRUE'
+    pipeline-scm:
+      scm:
+        - git:
+            url: '$CI_SCRIPTS_REPO'
+            branches:
+            - '$CI_SCRIPTS_BRANCH'
+            credentials-id: GIT_SSH_KEY
+            wipe-workspace: false
+      script-path: jenkins/ci.jpl