From 6a8db551a9e6239257b16e824345e9d9bcea2f8b Mon Sep 17 00:00:00 2001 From: Dandaedre Date: Thu, 15 Oct 2026 19:44:04 +0200 Subject: [PATCH] ci: export native backend parameter Bridge the declarative Jenkins boolean into the shell environment and retain a false fallback for initial jobs where the parameter has not yet been materialized.\n\nTests: scripts/test-ci.sh\nTests: cargo fmt --all -- --check --- Jenkinsfile | 1 + scripts/test-ci.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index cff8068..01bbeb3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,6 +20,7 @@ pipeline { } environment { + ENABLE_NATIVE_BACKENDS = "${params.ENABLE_NATIVE_BACKENDS ?: false}" CARGO_TERM_COLOR = 'never' RUST_BACKTRACE = '1' CARGO_TARGET_DIR = "${WORKSPACE}/target-ci" diff --git a/scripts/test-ci.sh b/scripts/test-ci.sh index 1819513..6a72823 100755 --- a/scripts/test-ci.sh +++ b/scripts/test-ci.sh @@ -32,6 +32,7 @@ file_mode() { assert_contains "$repository/Jenkinsfile" "name: 'ENABLE_NATIVE_BACKENDS'" assert_contains "$repository/Jenkinsfile" 'defaultValue: false' +assert_contains "$repository/Jenkinsfile" 'ENABLE_NATIVE_BACKENDS = "${params.ENABLE_NATIVE_BACKENDS ?: false}"' assert_contains "$repository/Jenkinsfile" "stage('Portable Rust Gates')" assert_contains "$repository/Jenkinsfile" '!params.ENABLE_NATIVE_BACKENDS' assert_contains "$repository/Jenkinsfile" 'params.ENABLE_NATIVE_BACKENDS'