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() { public void get() {
steps.stage("Download platforms.json") { steps.stage("Download platforms.json") {
"rm -rf platforms".execute() steps.deleteDir("platforms");
"git clone --depth 1 ${steps.env.PLATFORMS_GIT} platforms".execute() steps.dir("platforms") {
git url: "${steps.env.PLATFORMS_GIT}"
}
} }
} }
public void forEach(functor, stage_suffix = "") { 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 -> root.Platforms.each { key, dist ->
if (dist.enabled) { if (dist.enabled) {
steps.stage ("${key}${stage_suffix}") { steps.stage ("${key}${stage_suffix}") {