Jenkinsfile
This commit is contained in:
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@@ -9,8 +9,9 @@ def build_docker(name) {
|
||||
if (env.JOBS_COUNT) {
|
||||
jobs = "${env.JOBS_COUNT}"
|
||||
}
|
||||
def _pwd = sh(script: "pwd", returnStdout: true).trim()
|
||||
def args = "${pref} --build-arg LIBS_BUILD_NUMBER=${env.BUILD_NUMBER} --build-arg JOBS_COUNT=${jobs}"
|
||||
args += " -v `pwd`:/soft/libs -v `pwd`/../libs_build_${name}:/soft/libs_build_${name} --build-arg HAS_SOURCES=1"
|
||||
args += " --build-arg HAS_SOURCES=1 -v ${_pwd}:/soft/libs -v ${_pwd}/../libs_build_${name}:/soft/libs_build_${name}"
|
||||
dir ("docker/${image}") {
|
||||
//echo "build ${image} ${args}"
|
||||
sh "docker build ${args} --no-cache -t ${image} ."
|
||||
|
||||
Reference in New Issue
Block a user