From: Erik Brakkee Date: Sat, 24 Sep 2022 08:38:50 +0000 (+0200) Subject: migrate to new jenkins X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=cb3659b3b83e66fbb2851bb52392bdcd926528d2;p=upnpmonitor migrate to new jenkins --- diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..db0435c --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,26 @@ +String cron_string = BRANCH_NAME == "trunk" ? "10 3 * * *" : "" + + +pipeline { + agent { + kubernetes agentsetup(containers: 'java8') + } + options { + disableConcurrentBuilds() + } + triggers { cron(cron_string) } + + stages { + stage('Main') { + steps { + sh """ + mvn install + ( + cd site + mvn -N -Ddistrib=/data/www/http.upnpmonitor.wamblee.org/ site site:deploy + ) + """ + } + } + } +}