Skip to content

Commit

Permalink
Only test PRs targetting "main" psa-crypto branch
Browse files Browse the repository at this point in the history
The development branch does not contain the necessary files from
Mbed TLS.

Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
  • Loading branch information
bensze01 committed Sep 22, 2023
1 parent 92ab11c commit 0191782
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions vars/psa_crypto.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@
* This file is part of Mbed TLS (https://www.trustedfirmware.org/projects/mbed-tls/)
*/

import hudson.model.Result
import jenkins.model.CauseOfInterruption
import org.jenkinsci.plugins.workflow.steps.FlowInterruptedException

void run_pr_job() {
if (env.TARGET_BRANCH != 'main') {
echo 'PR target is not "main" branch - not building.'
throw new FlowInterruptedException(Result.NOT_BUILT, new CauseOfInterruption[0])
}
mbedtls.run_pr_job(true, 'psa-crypto')
}

0 comments on commit 0191782

Please sign in to comment.