jenkins-lib

Jenkins shared library
git clone https://git.in0rdr.ch/jenkins-lib.git
Log | Files | Refs | Pull requests | README

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 }