Jenkinsfile stage download

This commit is contained in:
2020-05-19 16:19:30 +03:00
parent 5d1706834b
commit 68945371f5
2 changed files with 4 additions and 6 deletions

8
Jenkinsfile vendored
View File

@@ -11,13 +11,14 @@ def build_docker(name) {
}
def args = "${pref} --build-arg LIBS_BUILD_NUMBER=${env.BUILD_NUMBER} --build-arg JOBS_COUNT=${jobs}"
dir ("docker/${image}") {
//echo "build ${image} ${args}"
sh "docker build ${args} --no-cache -t ${image} ."
}
return "\n - ${image}"
}
node {
checkout scm
stage("Download SRC") {
checkout scm
}
def _envmap = [:]
def _env = sh(script: "env", returnStdout: true).trim().split("\n")
_env.each{ l ->
@@ -26,12 +27,9 @@ node {
def _v = l.substring(_ind + 1);
_envmap["${_n}"] = "${_v}";
}
//println "done!"
//println "${_envmap}"
def _msg = "Built images:"
def platforms = ['debian', 'osx', 'windows', 'android', 'pi']
for (int i = 0; i < platforms.size(); ++i) {
//echo "check BUILD_${platforms[i]} -> ${_v}"
if (_envmap["BUILD_${platforms[i]}"] == "1") {
stage("${platforms[i]}-libs") {
_msg += build_docker("${platforms[i]}")

2
pip

Submodule pip updated: b860d8bbaf...1899832362