ci: export native backend parameter
Rust CI fader_master passed its selected CI mode.
MadGobblins/fader_master/pipeline/head This commit looks good
Details
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:
parent
6fa9bf2a57
commit
6a8db551a9
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in New Issue