Skip to content

Commit

Permalink
Fix check of boolean parameter
Browse files Browse the repository at this point in the history
All Jenkins parameters are strings, which are not implicitly parsed when
considering Groovy truthiness.

Signed-off-by: Bence Szépkúti <[email protected]>
  • Loading branch information
bensze01 committed Feb 23, 2025
1 parent 31e0cdb commit 8687a61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vars/mbedtls-pr-test-Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@

/* main job */
library identifier: 'mbedtls-test@master', retriever: legacySCM(scm)
mbedtls.run_pr_job('tls', false, env.MBED_TLS_BRANCH, env.RUN_TF_PSA_CRYPTO_ALL_SH ? env.TF_PSA_CRYPTO_BRANCH : '')
mbedtls.run_pr_job('tls', false, env.MBED_TLS_BRANCH, env.RUN_TF_PSA_CRYPTO_ALL_SH == 'true' ? env.TF_PSA_CRYPTO_BRANCH : '')
2 changes: 1 addition & 1 deletion vars/mbedtls-release-Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@

/* main job */
library identifier: 'mbedtls-test@master', retriever: legacySCM(scm)
mbedtls.run_release_job(env.MBED_TLS_BRANCH, env.RUN_TF_PSA_CRYPTO_ALL_SH ? env.TF_PSA_CRYPTO_BRANCH : '')
mbedtls.run_release_job(env.MBED_TLS_BRANCH, env.RUN_TF_PSA_CRYPTO_ALL_SH == 'true' ? env.TF_PSA_CRYPTO_BRANCH : '')

0 comments on commit 8687a61

Please sign in to comment.