DBZ-796 Do not create new image dirs when exists

This commit is contained in:
Jiri Pechanec 2018-07-20 10:07:58 +02:00 committed by Gunnar Morling
parent 0e35439019
commit b35d5a9413

View File

@ -435,6 +435,9 @@ node('Slave') {
def nextTag = "${version[0]}.${version[1]}"
for (i = 0; i < IMAGES.size(); i++) {
def image = IMAGES[i]
if ((new File("$image/$nextTag")).exists()) {
continue
}
sh "cp -r $image/$IMAGE_TAG $image/$nextTag && git add $image/$nextTag"
}
modifyFile('connect/snapshot/Dockerfile') {