Files
docker-add-debug/Jenkinsfile
2024-12-02 19:53:46 +03:00

18 lines
466 B
Groovy

@Library('SHS.Platforms') _
node {
stage("Download sources") {
checkout scm
}
def pl = new org.SHS.Platforms(this)
pl.get()
pl.forEach ({ dist ->
def args = "./all"
args += " --build-arg image_from=${env.DOCKER_PREFIX}/${dist.docker_image}"
args += " --build-arg build_type=Debug"
//print "${env.DOCKER_PREFIX}/${dist.docker_image} -> ${args}"
docker.build("${env.DOCKER_PREFIX}/${dist.docker_image}-debug", args)
},
ondemand: true
)
}