Skip to content

Commit

Permalink
ci(jenkins): add docker cli to building jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeptossss committed Nov 25, 2023
1 parent 5be7d9e commit 8afa6fb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions jenkins/job_dsl.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
Expand All @@ -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")
}
}
Expand Down

0 comments on commit 8afa6fb

Please sign in to comment.