This commit is contained in:
2023-11-19 23:14:59 +03:00
parent 2a6aaf2521
commit 730db2dc83

View File

@@ -24,7 +24,7 @@ class SDK {
def taglist = steps.sh(script: "cd \"${steps.env.SHSSDK_DIR}\" && ls -1d */", returnStdout: true).trim().split('\n') def taglist = steps.sh(script: "cd \"${steps.env.SHSSDK_DIR}\" && ls -1d */", returnStdout: true).trim().split('\n')
for (dir in taglist) { for (dir in taglist) {
if (!dir.startsWith('v') || !dir.endsWith('/')) continue if (!dir.startsWith('v') || !dir.endsWith('/')) continue
try { //try {
def tag = dir.trim() def tag = dir.trim()
tag = tag.substring(0, tag.length() - 1) tag = tag.substring(0, tag.length() - 1)
steps.print("Building for \"${tag}\"") steps.print("Building for \"${tag}\"")
@@ -36,17 +36,17 @@ class SDK {
steps.sh "rm -rf release/* build/* || true" steps.sh "rm -rf release/* build/* || true"
steps.sh "cd build && cmake -G Ninja ${cmake_toolchain} -DCMAKE_PREFIX_PATH=/soft/SHS/sdk -DBUILD_NUMBER=${steps.env.BUILD_NUMBER} -DCMAKE_INSTALL_PREFIX=`pwd`/../release/${tag} ../" steps.sh "cd build && cmake -G Ninja ${cmake_toolchain} -DCMAKE_PREFIX_PATH=/soft/SHS/sdk -DBUILD_NUMBER=${steps.env.BUILD_NUMBER} -DCMAKE_INSTALL_PREFIX=`pwd`/../release/${tag} ../"
steps.sh "cd build && cmake --build ./ --target install -j${steps.env.JOBS_COUNT}" steps.sh "cd build && cmake --build ./ --target install -j${steps.env.JOBS_COUNT}"
steps.archiveArtifacts 'release/${tag}/*' steps.archiveArtifacts "release/${tag}/*"
// steps.sh 'rm -rf ./build ./bin ./release ./builds' // steps.sh 'rm -rf ./build ./bin ./release ./builds'
} }
}, },
// //whiteList: ["ubuntu", "debian", "osx"], // //whiteList: ["ubuntu", "debian", "osx"],
blackList: ["android"] blackList: ["android"]
) )
} catch (Exception e) { //} catch (Exception e) {
steps.println "Error: ${e.getMessage()}" // steps.println "Error: ${e.getMessage()}"
} finally { //} finally {
} //}
} }
steps.stage("Register for autobuild") { steps.stage("Register for autobuild") {