Update the distro list

If you really need to test it against a different distro, you can go to
the `Replay` thing in Jenkins and modify the basePRDistros or
baseDistros list.
This commit is contained in:
William Giokas 2018-05-23 11:06:46 -06:00
parent b8ee1aa28e
commit f0574fb2c4

25
Jenkinsfile vendored
View file

@ -3,24 +3,25 @@ import java.util.Random
Random rand = new Random()
// ONLY CHANGE THIS BIT PLEASE
def distros = ["debian8",
"suse",
"centos6",
"arch",
"ubuntu-14.04",
"ubuntu-18.04",
"windows",
"ubuntu-16.04",
"centos7",
]
def baseDistros = ["debian8",
"suse",
"centos6",
"arch",
"ubuntu-14.04",
"ubuntu-18.04",
"windows",
]
def versions = ["stable", "git", "stable-old"]
def prDistros = ["ubuntu-16.04", "centos7"] + distros[rand.nextInt(distros.size() - 2)]
def basePrDistros = ["ubuntu-16.04",
"centos7"]
def prVersions = ["stable", "git"]
// You probably shouldn't be messing with this stuff down here
def distros = (baseDistros + basePrDistros).unique()
def notifySuccessful(String stageName) {
slackSend (color: '#00FF00', message: "SUCCESSFUL: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})" + "\n Stage -- " + stageName)
}
@ -42,6 +43,8 @@ for (d in distros) {
}
}
def prDistros = basePrDistros + distros[rand.nextInt(baseDistros.size())]
def prDistroversions = []
for (d in prDistros) {
for (v in prVersions) {