Jenkinsfile
This commit is contained in:
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@@ -10,6 +10,7 @@ def build_docker(name) {
|
|||||||
//echo "build ${image} ${args}"
|
//echo "build ${image} ${args}"
|
||||||
sh "docker build ${args} --no-cache -t ${image} ."
|
sh "docker build ${args} --no-cache -t ${image} ."
|
||||||
}
|
}
|
||||||
|
return "\n - ${image}"
|
||||||
}
|
}
|
||||||
node {
|
node {
|
||||||
checkout scm
|
checkout scm
|
||||||
@@ -23,11 +24,13 @@ node {
|
|||||||
}
|
}
|
||||||
//println "done!"
|
//println "done!"
|
||||||
//println "${_envmap}"
|
//println "${_envmap}"
|
||||||
|
def _msg = "Built images:"
|
||||||
def platforms = ['debian', 'osx', 'windows', 'android', 'pi']
|
def platforms = ['debian', 'osx', 'windows', 'android', 'pi']
|
||||||
for (int i = 0; i < platforms.size(); ++i) {
|
for (int i = 0; i < platforms.size(); ++i) {
|
||||||
//echo "check BUILD_${platforms[i]} -> ${_v}"
|
//echo "check BUILD_${platforms[i]} -> ${_v}"
|
||||||
if (_envmap["BUILD_${platforms[i]}"] == "1") {
|
if (_envmap["BUILD_${platforms[i]}"] == "1") {
|
||||||
build_docker("${platforms[i]}")
|
_msg += build_docker("${platforms[i]}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
echo "${_msg}"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user