Skip to content
Snippets Groups Projects
Commit 8a32b680 authored by George Joseph's avatar George Joseph
Browse files

CI: Move test group config files to Jenkins

One of the downaides of having things like test configuration
in the git repo is that it can't be changed at runtime.  You have
to create a review for the changes and merge it mefore it will
take effect.

This review moves the data currently held in
tests/CI/periodic-dailyTestGroups.json and
tests/CI/gateTestGroups.json into a Jenkins Config File attached
to the job definitions.  This allows us to alter it from the
Jenkins UI at runtime.  The original files stay in the repo
as documentation.

Change-Id: I14b9702f6285ce1fb2420287ba0e7d3b59109763
parent f5e6aa44
No related branches found
No related tags found
No related merge requests found
/*
* 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",
......
......@@ -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) {
......
/*
* 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 ",
......
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment