1
0
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:
Vitaly the Alpaca (bot)
2025-10-19 12:10:19 +03:00
parent a2328cafb8
commit 3b093c4d01
420 changed files with 16753 additions and 10049 deletions

View File

@@ -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) {