This commit is contained in:
2023-04-22 13:57:29 +03:00
parent f89e2fdc5d
commit 0019f362aa

View File

@@ -7,13 +7,15 @@ class Platforms {
public void get() {
steps.stage("Download platforms.json") {
"rm -rf platforms".execute()
"git clone --depth 1 ${steps.env.PLATFORMS_GIT} platforms".execute()
steps.deleteDir("platforms");
steps.dir("platforms") {
git url: "${steps.env.PLATFORMS_GIT}"
}
}
}
public void forEach(functor, stage_suffix = "") {
def root = steps.readJSON(file: 'platforms/platforms.json')
def root = steps.readJSON(file: 'platforms/*/platforms.json')
root.Platforms.each { key, dist ->
if (dist.enabled) {
steps.stage ("${key}${stage_suffix}") {