Add mbedtls-release-ci-testing

Signed-off-by: Arthur She <arthur.she@linaro.org>
Change-Id: I99d5fbbeac59bd63ae4a47a886f7ef809a99090c
diff --git a/mbedtls-release-ci-testing.yaml b/mbedtls-release-ci-testing.yaml
new file mode 100644
index 0000000..edbc91b
--- /dev/null
+++ b/mbedtls-release-ci-testing.yaml
@@ -0,0 +1,147 @@
+- job:
+    concurrent: true
+    description: Mbed TLS Release job (new)
+    disabled: false
+    name: mbedtls-release-ci-testing
+    parameters:
+    - string:
+        default: https://github.com/ARMmbed/mbedtls.git
+        description: Enter mbed TLS repo/fork
+        name: MBED_TLS_REPO
+        trim: 'true'
+    - string:
+        default: development
+        description: Enter branch or commit to test
+        name: MBED_TLS_BRANCH
+        trim: 'true'
+    - bool:
+        default: false
+        description: Run basic-build-test.sh (test coverage measurement)
+        name: RUN_BASIC_BUILD_TEST
+    - bool:
+        default: false
+        description: Run all.sh on Linux
+        name: RUN_ALL_SH
+    - bool:
+        default: false
+        description: Run a selection of all.sh on FreeBSD
+        name: RUN_FREEBSD
+    - bool:
+        default: false
+        description: Run Windows tests
+        name: RUN_WINDOWS_TEST
+    - bool:
+        default: false
+        description: Import mbed TLS into mbed-os master and test mbed TLS authcrypt
+          example.
+        name: TEST_MBED_OS_AUTHCRYPT_EXAMPLE
+    - bool:
+        default: false
+        description: Import mbed TLS into mbed-os master and test mbed TLS benchmark
+          example.
+        name: TEST_MBED_OS_BENCHMARK_EXAMPLE
+    - bool:
+        default: false
+        description: Import mbed TLS into mbed-os master and test mbed TLS hashing
+          example.
+        name: TEST_MBED_OS_HASHING_EXAMPLE
+    - bool:
+        default: false
+        description: Import mbed TLS into mbed-os master and test mbed TLS tls-client
+          example.
+        name: TEST_MBED_OS_TLS_CLIENT_EXAMPLE
+    - string:
+        default: ''
+        description: |-
+          Enter Mbed Crypto repo/fork. Note this *ONLY* influences the Mbed OS tests at this time.
+
+          Optional - if omitted will use what's embedded in the Mbed TLS submodule.
+        name: MBED_CRYPTO_REPO
+        trim: 'true'
+    - string:
+        default: ''
+        description: |-
+          Enter Mbed Crypto branch. Note this *ONLY* influences the Mbed OS tests at this time.
+
+          Optional - if omitted will use what's embedded in the Mbed TLS submodule.
+        name: MBED_CRYPTO_BRANCH
+        trim: 'true'
+    - string:
+        default: https://github.com/ARMmbed/mbed-os.git
+        description: Enter the Mbed OS repo or fork
+        name: MBED_OS_REPO
+        trim: 'true'
+    - string:
+        default: master
+        description: |-
+          Enter branch or commit to test.
+
+          By default we test with the HEAD of the master branch, which is NOT a fixed release.
+        name: MBED_OS_BRANCH
+        trim: 'true'
+    - string:
+        default: https://github.com/ARMmbed/mbed-os-example-tls.git
+        description: |-
+          Enter the Mbed OS examples repo or fork.
+
+          This defaults to the main repository the examples are held in.
+        name: MBED_OS_TLS_EXAMPLES_REPO
+        trim: 'true'
+    - string:
+        default: master
+        description: |-
+          Enter branch or commit to test.
+
+          This defaults to the HEAD of the master branch.
+        name: MBED_OS_TLS_EXAMPLES_BRANCH
+        trim: 'true'
+    - choice:
+        choices:
+        - Pull Request
+        - Mbed OS Gold Boards
+        - Mbed OS Silver Boards
+        - Mbed OS Gold Boards + Mbed OS Silver Boards
+        description: |-
+          Pull Request - Boards tested in the Pull Request job<br>
+
+          For the list of Mbed OS Gold and Silver boards, see <a href="https://confluence.arm.com/display/IoTBU/ISG+Device+SW+SUT+list">here</a>
+        name: PLATFORMS_TO_TEST
+    - git-parameter:
+        name: TEST_BRANCH
+        description: Branch or tag in https://github.com/arthur-she/mbedtls-test (forks are not supported)
+        type: PT_BRANCH_TAG
+        quickFilterEnabled: True
+        defaultValue: leo-mbedtls-open-ci-notify-github
+    pipeline-scm:
+      lightweight-checkout: false
+      scm:
+      - git:
+          branches:
+          - ${TEST_BRANCH}
+          url: https://github.com/arthur-she/mbedtls-test.git
+      script-path: vars/mbedtls-release-Jenkinsfile
+    project-type: pipeline
+    properties:
+    - build-blocker:
+        block-level: GLOBAL
+        blocking-jobs: []
+        queue-scanning: DISABLED
+        use-build-blocker: false
+    - build-discarder:
+        artifact-days-to-keep: -1
+        artifact-num-to-keep: -1
+        days-to-keep: 60
+        num-to-keep: 30
+    - github:
+        url: https://github.com/ARMmbed/mbedtls/
+    - inject:
+        enabled: true
+        keep-build-variables: true
+        keep-system-variables: true
+        load-from-master: false
+        override-build-parameters: false
+        properties-content: |-
+          GIT_CREDENTIALS_ID= d015f9b1-4800-4a81-86b3-9dbadc18ee00
+          TEST_PASS_EMAIL_ADDRESS=arthur.she@linaro.org
+          TEST_FAIL_EMAIL_ADDRESS=arthur.she@linaro.org
+