diff --git a/tests/CI/gateTestGroups.json b/tests/CI/gateTestGroups.json index d0488962ba39082f554cfe0be5c839c06d753961..415a7d709b9e690a51c90a9a01878f3edc6557a0 100644 --- a/tests/CI/gateTestGroups.json +++ b/tests/CI/gateTestGroups.json @@ -1,3 +1,10 @@ +/* + * This file is for reference/documentation only. + * The live configuration is defined in the Config Files + * settings of the Asterisk Gates Jenkins job. + * This allows is to alter the parameters at runtime. + */ + [ { "name": "ari1", diff --git a/tests/CI/gates.jenkinsfile b/tests/CI/gates.jenkinsfile index bc23781d6fc8d0aedb1313982feff09ac42ecc42..a90b0cf8e08a91cff3cc573322d10fc5fcee55a6 100644 --- a/tests/CI/gates.jenkinsfile +++ b/tests/CI/gates.jenkinsfile @@ -159,7 +159,16 @@ pipeline { } } - def testGroups = readJSON file: "tests/CI/gateTestGroups.json" + def testGroups + configFileProvider([configFile(fileId: 'asterisk_gate_test_groups', variable: 'GATE_TEST_GROUPS')]) { + echo "Retrieved config file from ${env.GATE_TEST_GROUPS}" + testGroups = readJSON file: env.GATE_TEST_GROUPS + } + echo "Running test groups:" + for (def testGroup in testGroups) { + echo "${testGroup.name} ${testGroup.dir} ${testGroup.testcmd}" + } + def parallelTasks = [ : ] for (def testGroup in testGroups) { diff --git a/tests/CI/periodic-dailyTestGroups.json b/tests/CI/periodic-dailyTestGroups.json index 7f0fd7ecfa5f583a73af74eaa99c5b65472e19f1..cc837f69c737ca6021297de06d21a26c00f538b0 100644 --- a/tests/CI/periodic-dailyTestGroups.json +++ b/tests/CI/periodic-dailyTestGroups.json @@ -1,3 +1,9 @@ +/* + * This file is for reference/documentation only. + * The live configuration is defined in the Config Files + * settings of the Asterisk Gates Jenkins job. + * This allows is to alter the parameters at runtime. + */ [ { "name": "ari ", diff --git a/tests/CI/periodics-daily.jenkinsfile b/tests/CI/periodics-daily.jenkinsfile index ae762f8e826df3a654eecd637fea61fec643063f..ae5a5f440cd467ef1b9aa57edff70d42152a43aa 100644 --- a/tests/CI/periodics-daily.jenkinsfile +++ b/tests/CI/periodics-daily.jenkinsfile @@ -91,7 +91,12 @@ pipeline { } } - def testGroups = readJSON file: "tests/CI/periodic-dailyTestGroups.json" + def testGroups + configFileProvider([configFile(fileId: 'asterisk_daily_test_groups', variable: 'DAILY_TEST_GROUPS')]) { + echo "Retrieved config file from ${env.DAILY_TEST_GROUPS}" + testGroups = readJSON file: env.DAILY_TEST_GROUPS + } + def parallelTasks = [ : ] for (def testGroup in testGroups) {