Add parameters and jobs for framework testing
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
Change-Id: Ifc94180b655173249030e6dc7781214ff488dfb8
diff --git a/mbed-tls-framework-multibranch.yaml b/mbed-tls-framework-multibranch.yaml
new file mode 100644
index 0000000..68d18c5
--- /dev/null
+++ b/mbed-tls-framework-multibranch.yaml
@@ -0,0 +1,60 @@
+- job:
+ name: mbed-tls-framework-multibranch
+ description: 'Job for testing Framework PRs'
+ project-type: multibranch
+ disabled: false
+ prune-dead-branches: true
+ days-to-keep: 60
+ num-to-keep: 1000
+ script-path: tests/.jenkins/Jenkinsfile
+ properties:
+ - raw:
+ xml: |
+ <org.jenkinsci.plugins.workflow.libs.FolderLibraries plugin="workflow-cps-global-lib@2.9">
+ <libraries>
+ <org.jenkinsci.plugins.workflow.libs.LibraryConfiguration>
+ <name>mbedtls-test</name>
+ <retriever class="org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever">
+ <scm class="org.jenkinsci.plugins.github_branch_source.GitHubSCMSource" plugin="github-branch-source@2.9.1">
+ <credentialsId>mbedtls-github-token</credentialsId>
+ <repoOwner>Mbed-TLS</repoOwner>
+ <repository>mbedtls-test</repository>
+ <repositoryUrl>https://github.com/Mbed-TLS/mbedtls-test.git</repositoryUrl>
+ <traits>
+ <org.jenkinsci.plugins.github__branch__source.SSHCheckoutTrait>
+ <credentialsId>mbedtls-github-ssh</credentialsId>
+ </org.jenkinsci.plugins.github__branch__source.SSHCheckoutTrait>
+ </traits>
+ </scm>
+ </retriever>
+ <defaultVersion>dev/bensze01/framework</defaultVersion>
+ <implicit>true</implicit>
+ <allowVersionOverride>true</allowVersionOverride>
+ <includeInChangesets>true</includeInChangesets>
+ </org.jenkinsci.plugins.workflow.libs.LibraryConfiguration>
+ </libraries>
+ </org.jenkinsci.plugins.workflow.libs.FolderLibraries>
+ scm:
+ - github:
+ api-uri: https://api.github.com
+ credentials-id: mbedtls-github-token
+ repo-owner: Mbed-TLS
+ repo: mbedtls-framework
+ branch-discovery: no-pr
+ discover-pr-forks-strategy: both
+ discover-pr-forks-trust: nobody
+ discover-pr-origin: both
+ head-filter-regex: 'PR-\d+-head|gh-readonly-queue/.*'
+ status-checks:
+ skip: true
+ skip-branch-source-notifications: true
+ property-strategies:
+ all-branches:
+ - pipeline-branch-durability-override: performance-optimized
+ submodule:
+ disable: false
+ recursive: true
+ tracking: false
+ parent-credentials: true
+ ssh-checkout:
+ credentials: mbedtls-github-ssh
diff --git a/mbed-tls-restricted-pr-test-parametrized.yaml b/mbed-tls-restricted-pr-test-parametrized.yaml
index 60a48a8..66eae59 100644
--- a/mbed-tls-restricted-pr-test-parametrized.yaml
+++ b/mbed-tls-restricted-pr-test-parametrized.yaml
@@ -20,6 +20,16 @@
name: MBED_TLS_BRANCH
trim: 'false'
- string:
+ default: ssh://git@github.com:Mbed-TLS/mbedtls-framework.git
+ description: Enter Framework repo/fork to override the one specififed in the Mbed TLS branch (only used if FRAMEWORK_BRANCH is also set)
+ name: FRAMEWORK_TLS_REPO
+ trim: 'true'
+ - string:
+ default: ''
+ description: Enter Framework branch to override the one specififed in the Mbed TLS branch.
+ name: FRAMEWORK_TLS_BRANCH
+ trim: 'false'
+ - string:
default: ''
description: |-
Enter Mbed Crypto repo/fork. Note this *ONLY* influences the Mbed OS tests at this time.
diff --git a/mbedtls-release-ci-testing.yaml b/mbedtls-release-ci-testing.yaml
index 09a8f74..ae4461e 100644
--- a/mbedtls-release-ci-testing.yaml
+++ b/mbedtls-release-ci-testing.yaml
@@ -14,6 +14,16 @@
description: Enter branch or commit to test
name: MBED_TLS_BRANCH
trim: 'true'
+ - string:
+ default: ssh://git@github.com:Mbed-TLS/mbedtls-framework.git
+ description: Enter Framework repo/fork to override the one specififed in the Mbed TLS branch (only used if FRAMEWORK_BRANCH is also set)
+ name: FRAMEWORK_TLS_REPO
+ trim: 'true'
+ - string:
+ default: ''
+ description: Enter Framework branch to override the one specififed in the Mbed TLS branch.
+ name: FRAMEWORK_TLS_BRANCH
+ trim: 'false'
- bool:
default: false
description: Run basic-build-test.sh (test coverage measurement)