Jenkinsfile stage download
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -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
2
pip
Submodule pip updated: b860d8bbaf...1899832362
Reference in New Issue
Block a user