Updatecli.groovy (420B)
1 // A class to describe the updatecli stages 2 class Updatecli implements Serializable { 3 private final Script script 4 5 Updatecli(Script script) { 6 this.script = script 7 } 8 9 void run(String action = 'diff') { 10 script.stage(action) { 11 script.docker.image('haproxy.lan:5000/updatecli:v0.82.0') 12 .inside('-u root --entrypoint=""') { 13 script.sh "updatecli ${action}" 14 } 15 } 16 } 17 }