mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-17 10:10:25 +00:00
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:
parent
b8ee1aa28e
commit
f0574fb2c4
1 changed files with 14 additions and 11 deletions
25
Jenkinsfile
vendored
25
Jenkinsfile
vendored
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue