From 8afa6fbee6d5dfdf062f88acc9ba2c352a4b6645 Mon Sep 17 00:00:00 2001 From: Neeptossss Date: Sat, 25 Nov 2023 21:28:12 +0100 Subject: [PATCH] ci(jenkins): add docker cli to building jobs --- jenkins/job_dsl.groovy | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/jenkins/job_dsl.groovy b/jenkins/job_dsl.groovy index 4d09dd8..0cce143 100755 --- a/jenkins/job_dsl.groovy +++ b/jenkins/job_dsl.groovy @@ -25,6 +25,12 @@ languages.each { language -> println "Creating job for language: " + language freeStyleJob("Whanos base images/whanos-$language") { steps { + shell(''' + cp -r /whanos/scripts/install_dockercli.sh . + chmod -R 777 install_dockercli.sh + ls -la + sh -c "./install_dockercli.sh" + ''') shell("docker build /whanos/images/$language -t whanos-$language -f /whanos/images/$language/Dockerfile.base") } } @@ -33,6 +39,12 @@ languages.each { language -> freeStyleJob("Whanos base images/Build all base images") { steps { languages.each { language -> + shell(''' + cp -r /whanos/scripts/install_dockercli.sh . + chmod -R 777 install_dockercli.sh + ls -la + sh -c "./install_dockercli.sh" + ''') shell("docker build /whanos/images/$language -t whanos-$language -f /whanos/images/$language/Dockerfile.base") } }