ci: export native backend parameter
Rust CI fader_master passed its selected CI mode.
MadGobblins/fader_master/pipeline/head This commit looks good Details

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
This commit is contained in:
Dandaedre 2026-10-15 19:44:04 +02:00
parent 6fa9bf2a57
commit 6a8db551a9
Signed by: Dandaedre
GPG Key ID: 440C6592E8A26D99
2 changed files with 2 additions and 0 deletions

1
Jenkinsfile vendored
View File

@ -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"

View File

@ -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'