This repository has been archived on 2020-09-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
libs/Jenkinsfile
Ivan Pelipenko cd61d10c61
Some checks failed
SHS Gitea/libs/pipeline/head There was a failure building this commit
first release
2020-04-27 19:49:54 +03:00

10 lines
332 B
Groovy

node {
def img
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("${env.DOCKER_PREFIX}/libs", "${def_args} --build-arg DOCKER_PREFIX=${env.DOCKER_PREFIX} .")
} else {
img = docker.build("libs", "${def_args} .")
}
img.push()
}