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

18
ci/cli_deb_test_en vendored
View File

@@ -795,8 +795,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

18
ci/cli_deb_test_ru vendored
View File

@@ -795,8 +795,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

18
ci/cli_rpm_test_en vendored
View File

@@ -794,8 +794,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

18
ci/cli_rpm_test_ru vendored
View File

@@ -794,8 +794,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

18
ci/cli_test_en vendored
View File

@@ -874,8 +874,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

18
ci/cli_test_ru vendored
View File

@@ -874,8 +874,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

18
ci/os_deb_test_en vendored
View File

@@ -804,8 +804,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

18
ci/os_deb_test_ru vendored
View File

@@ -804,8 +804,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

18
ci/os_rpm_test_en vendored
View File

@@ -804,8 +804,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

18
ci/os_rpm_test_ru vendored
View File

@@ -804,8 +804,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

18
ci/os_test_en vendored
View File

@@ -801,8 +801,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -110,8 +110,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -110,8 +110,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -109,8 +109,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -109,8 +109,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -189,8 +189,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -189,8 +189,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -119,8 +119,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -119,8 +119,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -119,8 +119,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -119,8 +119,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -116,8 +116,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -116,8 +116,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -122,8 +122,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -122,8 +122,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -121,8 +121,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -121,8 +121,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -201,8 +201,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -201,8 +201,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -131,8 +131,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -131,8 +131,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -131,8 +131,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -131,8 +131,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -128,8 +128,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -128,8 +128,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -109,8 +109,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -109,8 +109,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -108,8 +108,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -108,8 +108,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -188,8 +188,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -188,8 +188,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -118,8 +118,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -118,8 +118,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -118,8 +118,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -118,8 +118,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -115,8 +115,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -115,8 +115,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -114,8 +114,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -114,8 +114,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -113,8 +113,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -113,8 +113,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -193,8 +193,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -193,8 +193,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -123,8 +123,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -123,8 +123,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -123,8 +123,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -123,8 +123,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -120,8 +120,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -120,8 +120,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -109,8 +109,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -109,8 +109,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -108,8 +108,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -108,8 +108,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -188,8 +188,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -188,8 +188,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -118,8 +118,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -118,8 +118,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -118,8 +118,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -118,8 +118,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -115,8 +115,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -115,8 +115,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -110,8 +110,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -110,8 +110,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -109,8 +109,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -109,8 +109,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -189,8 +189,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -189,8 +189,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -119,8 +119,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -119,8 +119,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -119,8 +119,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -119,8 +119,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -116,8 +116,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -116,8 +116,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -111,8 +111,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -111,8 +111,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -110,8 +110,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -110,8 +110,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -190,8 +190,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -190,8 +190,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -120,8 +120,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -120,8 +120,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -120,8 +120,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -120,8 +120,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -117,8 +117,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -117,8 +117,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -109,8 +109,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -109,8 +109,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -108,8 +108,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -108,8 +108,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

View File

@@ -188,8 +188,24 @@ pipeline {
}
def shouldRunStage(stageName) {
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
return config[stageName] == true
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) {

Some files were not shown because too many files have changed in this diff Show More