You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-23 22:05:15 +02:00
Main build (Jenkins)
This commit is contained in:
20
ci/split_tests/Bitrix24/cli_test_en
vendored
20
ci/split_tests/Bitrix24/cli_test_en
vendored
@@ -201,8 +201,24 @@ pipeline {
|
||||
}
|
||||
|
||||
def shouldRunStage(stageName) {
|
||||
def config = readJSON text: env.STAGES_CONFIG
|
||||
return config[stageName] == true
|
||||
try {
|
||||
if (!env.STAGES_CONFIG) {
|
||||
echo "[WARN] STAGES_CONFIG not set. Assuming stage '${stageName}' is ENABLED."
|
||||
return true
|
||||
}
|
||||
def config = readJSON text: env.STAGES_CONFIG
|
||||
def value = config[stageName]
|
||||
if (value == null) {
|
||||
echo "[WARN] Stage '${stageName}' not found in config. Defaulting to DISABLED."
|
||||
return false
|
||||
}
|
||||
return value == true
|
||||
} catch (Exception e) {
|
||||
echo "[ERROR] Failed to parse STAGES_CONFIG: ${e.message}"
|
||||
echo "Raw config: ${env.STAGES_CONFIG}"
|
||||
// Решите: включать stage по умолчанию или нет?
|
||||
return false // или true — по вашему усмотрению
|
||||
}
|
||||
}
|
||||
|
||||
def runLibraryTest(String configPath, String libraryName) {
|
||||
|
||||
Reference in New Issue
Block a user