diff --git a/src/org/SHS/SDK.groovy b/src/org/SHS/SDK.groovy index ed385ff..65df504 100644 --- a/src/org/SHS/SDK.groovy +++ b/src/org/SHS/SDK.groovy @@ -22,9 +22,12 @@ class SDK { //steps.print("file: /${steps.env.SHSSDK_DIR}/platforms.json") def taglist = steps.sh(script: "cd \"${steps.env.SHSSDK_DIR}\" && ls -1d */", returnStdout: true).trim().split('\n') - for (tag in taglist) { - if (!tag.startsWith('v') || !tag.endsWith('/')) continue + for (dir in taglist) { + if (!dir.startsWith('v') || !dir.endsWith('/')) continue try { + def tag = dir.trim() + tag = tag.substring(0, tag.length() - 1) + steps.print("build for \"${tag}\"") pl._root = steps.readJSON(file: "${steps.env.SHSSDK_DIR}/${tag}/platforms.json") pl.forEach ({ dist, cmake_toolchain -> //steps.print("compile in ${dist.docker_image} with arg ${cmake_toolchain}")