Jenkinsfile
This commit is contained in:
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@@ -4,7 +4,8 @@ node {
|
||||
def def_args = "--no-cache --build-arg LIBS_BUILD_NUMBER=${env.BUILD_NUMBER} --build-arg JOBS_COUNT=4"
|
||||
if (env.DOCKER_PREFIX) {
|
||||
img = docker.build("libs", "${def_args} --build-arg DOCKER_PREFIX=${env.DOCKER_PREFIX} .")
|
||||
img.push("${env.DOCKER_PREFIX}/libs")
|
||||
sh "docker tag libs ${env.DOCKER_PREFIX}/libs"
|
||||
sh "docker push ${env.DOCKER_PREFIX}/libs"
|
||||
} else {
|
||||
img = docker.build("libs", "${def_args} .")
|
||||
img.push()
|
||||
|
||||
Reference in New Issue
Block a user