Always use SSH checkouts in test jobs
This allows us to bypass Github rate-limits on anonymous checkouts.
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
Change-Id: I353ef36a955e29b9d7c06cad1e77755f8ddceed0
diff --git a/mbed-tls-restricted-pr-ci-testing.yaml b/mbed-tls-restricted-pr-ci-testing.yaml
index b05b97b..bbcfc9d 100644
--- a/mbed-tls-restricted-pr-ci-testing.yaml
+++ b/mbed-tls-restricted-pr-ci-testing.yaml
@@ -13,9 +13,15 @@
<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>staging/pr-ci-testing</defaultVersion>
@@ -43,7 +49,7 @@
disable: false
recursive: true
tracking: false
- parent-credentials: false
+ parent-credentials: true
ssh-checkout:
credentials: mbedtls-github-ssh
- github:
@@ -65,6 +71,6 @@
disable: false
recursive: true
tracking: false
- parent-credentials: false
+ parent-credentials: true
ssh-checkout:
credentials: mbedtls-github-ssh