This commit is contained in:
2020-05-18 19:34:12 +03:00
parent 72e7b42813
commit 4bc671584c
2 changed files with 2 additions and 4 deletions

2
Jenkinsfile vendored
View File

@@ -9,9 +9,7 @@ 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 += " --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} ."